'Compiler error' instead of error message
Richard Atterer
atterer@informatik.tu-muenchen.de
Fri Apr 9 15:53:00 GMT 1999
/* egcs-2.90.29 980515 (egcs-1.0.3 release)
fails to produce an error message; instead gives 'internal compiler error'
Command: 'egcs <file>'
Platform: x86, mobile P2, Linux 2.2.5
No modifications to compiler source (used binaries as supplied with RedHat
Linux 5.2)
Keep up the good work!
Cheers,
Richard
*/
struct A {
virtual bool foo() = 0;
};
struct B : A {
virtual bool foo() { return true; }
};
int main() {
A* a = new B;
if (a->foo) return 0; // NB error, should read '(a->foo())'
return 0;
}
--
__ _
|_) /| Richard Atterer
| \/ï| http://www.in.tum.de/~atterer/ raFS V1.15
ï ô` ï
PGP key fingerprint: C5 59 22 97 80 12 34 C6 6E CE 27 32 2A 44 2C 4A
More information about the Gcc-bugs
mailing list