This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9589: Segmentation fault on missing semicolon after class definition.
- From: reichelt at igpm dot rwth-aachen dot de
- To: bmiller at txcorp dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 6 Feb 2003 23:26:20 -0000
- Subject: Re: c++/9589: Segmentation fault on missing semicolon after class definition.
- Reply-to: reichelt at igpm dot rwth-aachen dot de, bmiller at txcorp dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: Segmentation fault on missing semicolon after class definition.
State-Changed-From-To: open->closed
State-Changed-By: reichelt
State-Changed-When: Thu Feb 6 23:26:19 2003
State-Changed-Why:
Confirmed, but fixed on 3.3 branch and mainline.
A reduced testcase is the following:
---------------------snip here----------------------
struct A
{
A();
void foo() const;
};
struct B
{
void bar (const A &a) const { a.foo(); }
} // missing semicolon
A::A () {}
---------------------snip here----------------------
It crashes gcc 2.95.x, 3.0.x, 3.1.x, 3.2.x.
However, the code gives a regular error with 3.3 branch and mainline.
Since it's not a regression I close the PR.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9589