Compiler error

Alexandre Oliva oliva@dcc.unicamp.br
Thu Sep 17 11:50:00 GMT 1998


Michael Haggerty <mhagger@blizzard.harvard.edu> writes:

> The following transcript illustrates an internal compiler error.

Well, not exactly an ICE, just a bug in the compiler.  Internal
Compiler Errors are usually identified as such.

> I believe that the line `b.a();' should call the operator() method
> of the static A within struct B.

Yup.  This problem is fixed in the current CVS tree.

> struct A { void operator() (); };
> struct B { static A a; };
> void f() { B b; b.a(); }

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil




More information about the Gcc-bugs mailing list