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: reproducible internal error under 1.0.3


Ragnar Hojland Espinosa wrote:

> egcs-2.90.29 980515 (egcs-1.0.3 release)
> lightside:/tmp$ cat x.c
> struct A
> {
>    struct AA{
>       void foo() { }
>    };
> };
> 
> main()
> {
>    A *a = new A;
>    a->AA().foo();
> }

That code is ill-formed. You are supposed to write `A::AA().foo();'.
The latest snapshot gives an appropriate error-message.

--
Thomas Kunert


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