This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/10259: segmentation fault
- From: bangerth at dealii dot org
- To: e97_far at e dot kth dot se, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 29 Mar 2003 00:07:25 -0000
- Subject: Re: c++/10259: segmentation fault
- Reply-to: bangerth at dealii dot org, e97_far at e dot kth dot se, 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
State-Changed-From-To: feedback->closed
State-Changed-By: bangerth
State-Changed-When: Sat Mar 29 00:07:24 2003
State-Changed-Why:
Actually, there was enough information in the PR. This is
an extract:
----------------------
struct X { X(); };
struct B { static void foo (); };
struct Y {
void foo() {
B::foo();
}
}
X::X() {}
-----------------------
Note the missing semicolon after the declaration of struct
Y! With 3.2.3, we get this:
g/x> /home/bangerth/bin/gcc-3.2.3-pre/bin/c++ -c y.cc
y.cc:10: internal error: Segmentation fault
This ICEd with 2.95 and 3.0 as well, so is not a regression.
On the other hand, 3.3 and 3.4 are fixed:
g/x> /home/bangerth/bin/gcc-3.3-pre/bin/c++ -c y.cc
y.cc:10: error: ISO C++ forbids defining types within return type
y.cc:10: error: `void ()()' is not an aggregate type
y.cc:10: error: semicolon missing after declaration of `struct Y'
g/x>
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c y.cc
y.cc:10: error: return type specification for constructor invalid
Since this is not a regression, the bug will certainly
not be fixed for 3.2.3, so I close this report.
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10259