This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Compiler error


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]