This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Compiler error
- To: mhagger at blizzard dot harvard dot edu
- Subject: Re: Compiler error
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 17 Sep 1998 14:57:41 +-300
- Cc: egcs-bugs at cygnus dot com
- References: <9809170119.AA09596@tsunami.harvard.edu>
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