This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/10780: compiler crash on code with error
- From: giovannibajo at libero dot it
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, hijaszu at mail dot novo-iram dot hu, nobody at gcc dot gnu dot org
- Date: 14 May 2003 16:23:45 -0000
- Subject: Re: c++/10780: compiler crash on code with error
- Reply-to: giovannibajo at libero dot it, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, hijaszu at mail dot novo-iram dot hu, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: compiler crash on code with error
State-Changed-From-To: open->closed
State-Changed-By: bajo
State-Changed-When: Wed May 14 16:23:44 2003
State-Changed-Why:
Confirmed:
-----------------------------------
struct Foo
{
Foo() {}
~Foo() {}
};
void func(int x)
{
switch (x)
{
case 0:
Foo a;
break;
default:
;
}
}
-----------------------------------
pr10780.ii: In function `void func(int)':
pr10780.ii:15: jump to case label
pr10780.ii:12: crosses initialization of `Foo a'
Internal compiler error: Error reporting routines re-entered.
Please submit a full bug report,
but fixed already in GCC 3.3 and mainline (3.4 20030503).
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10780