🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #1138

Internal compiler error 116

#1138
From: H. Vaisanen
Date: Thu, 12 Nov 1992 14:54
30 lines
1110 bytes
This program generates Internal compiler error 116

class A;
typedef double (A::*FUNC)(double x);


class A {
public:
  double f(double x);
  void b(FUNC f, double y);
};

void A::b(FUNC f, double y)
{
  f(y);          // WRONG
  (this->*f)(y); // right
}

--------

% g++ -Wall -lg++ -L/usr/local/Gnu/lib A.C -o A
A.C: In method `void  A::b (auto double (class A::*)(double ), double)':
A.C:13: Internal compiler error 116.
A.C:13: Please report this to `bug-g++@prep.ai.mit.edu'.

Compilation exited abnormally with code 1 at Thu Nov 12 17:52:21

% gcc -v
Reading specs from /usr/local/Gnu/lib/gcc-lib/decstation-3100/2.3.1/specs
gcc version 2.3.1
Technical Details
Message-ID: <9211121054.AA25579@cs.joensuu.fi>
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cs.joensuu.fi!hvaisane

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cs.joensuu.fi!hvaisane
From: hvaisane@cs.joensuu.fi (H. Vaisanen)
Subject: Internal compiler error 116
Message-ID: <9211121054.AA25579@cs.joensuu.fi>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Thu, 12 Nov 1992 14:54:27 GMT
Approved: bug-g++@prep.ai.mit.edu
Lines: 31