public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* reproducible internal error under 1.0.3
@ 1998-08-14  4:51 Ragnar Hojland Espinosa
  1998-08-14  7:50 ` Thomas Kunert
  0 siblings, 1 reply; 3+ messages in thread
From: Ragnar Hojland Espinosa @ 1998-08-14  4:51 UTC (permalink / raw)
  To: egcs-bugs

lightside:/tmp$ e++ x.c
x.c: In function `int main()':
x.c:11: Internal compiler error.
x.c:11: Please submit a full bug report to `egcs-bugs@cygnus.com'.
lightside:/tmp$ e++ --version
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();
}

-- 
____/|  Ragnar Hojland  (ragnar@lightside.ddns.org)      Fingerprint  94C4B
\ o.O|                                                   2F0D27DE025BE2302C
 =(_)=  "Thou shalt not follow the NULL pointer for      104B78C56 B72F0822
   U     chaos and madness await thee at its end."       hkp://keys.pgp.com



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: reproducible internal error under 1.0.3
  1998-08-14  4:51 reproducible internal error under 1.0.3 Ragnar Hojland Espinosa
@ 1998-08-14  7:50 ` Thomas Kunert
  1998-08-14 15:25   ` Ragnar Hojland Espinosa
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Kunert @ 1998-08-14  7:50 UTC (permalink / raw)
  To: Ragnar Hojland Espinosa; +Cc: egcs-bugs

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: reproducible internal error under 1.0.3
  1998-08-14  7:50 ` Thomas Kunert
@ 1998-08-14 15:25   ` Ragnar Hojland Espinosa
  0 siblings, 0 replies; 3+ messages in thread
From: Ragnar Hojland Espinosa @ 1998-08-14 15:25 UTC (permalink / raw)
  To: Thomas Kunert; +Cc: egcs-bugs

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

I know its ill-formed, but I thought you'd like to know about the error.

-- 
____/|  Ragnar Hojland  (ragnar@lightside.ddns.org)      Fingerprint  94C4B
\ o.O|                                                   2F0D27DE025BE2302C
 =(_)=  "Thou shalt not follow the NULL pointer for      104B78C56 B72F0822
   U     chaos and madness await thee at its end."       hkp://keys.pgp.com



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-08-14 15:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-08-14  4:51 reproducible internal error under 1.0.3 Ragnar Hojland Espinosa
1998-08-14  7:50 ` Thomas Kunert
1998-08-14 15:25   ` Ragnar Hojland Espinosa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).