This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: reproducible internal error under 1.0.3
- To: Ragnar Hojland Espinosa <ragnar at lightside dot ddns dot org>
- Subject: Re: reproducible internal error under 1.0.3
- From: Thomas Kunert <kunert at physik dot tu-dresden dot de>
- Date: Fri, 14 Aug 1998 16:49:38 +0200
- CC: egcs-bugs at cygnus dot com
- Organization: TU Dresden
- References: <Pine.Linu.4.00.9808141312040.1572-100000@lightside.ddns.org>
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