public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/8089: c++ code with syntax error causes internal compiler error segfault
@ 2002-09-29 11:26 jsantiago
0 siblings, 0 replies; 3+ messages in thread
From: jsantiago @ 2002-09-29 11:26 UTC (permalink / raw)
To: gcc-gnats
>Number: 8089
>Category: c++
>Synopsis: c++ code with syntax error causes internal compiler error segfault
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Sun Sep 29 11:26:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Jose Santiago
>Release: 3.2 and 2.95.3 and probably others
>Organization:
>Environment:
System: Linux hpc003 2.4.19pre1 #4 SMP Fri Mar 1 09:30:24 CST 2002 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../configure --prefix=/appl/gcc-3.2 --disable-shared --enable-threads --enable-version-specific-runtime-libs --with-included-gettext
Thread model: posix
gcc version 3.2
>Description:
g++ generates an Internal Compiler Error and segfaults with the following program containing a syntax error:
class S {
public:
class SS {
public:
enum STATE_TYPE { INITIAL, INTERMEDIATE, FINAL };
}; /* class S:SS */
}; /* class S */
int main(void)
{
enum S::SS::STATE_TYPE state1;
//The following line is a syntax error that generates an
//internal compiler error on gcc-2.95.3 and gcc-3.2
enum S::SS state2;
return 0;
}
>How-To-Repeat:
compile the attatched program using gcc-3.2, gcc-2.95.3 and probably others.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="main.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="main.cpp"
CmNsYXNzIFMgewoKICBwdWJsaWM6CiAgICBjbGFzcyBTUyB7CiAgICAgIHB1YmxpYzoKICAgICAg
ICBlbnVtIFNUQVRFX1RZUEUgeyBJTklUSUFMLCBJTlRFUk1FRElBVEUsIEZJTkFMIH07CiAgICB9
OyAvKiBjbGFzcyBTOlNTICovCgp9OyAvKiBjbGFzcyBTICovCgppbnQgbWFpbih2b2lkKQp7Cgog
IGVudW0gUzo6U1M6OlNUQVRFX1RZUEUgc3RhdGUxOwoKLy9UaGUgZm9sbG93aW5nIGxpbmUgaXMg
YSBzeW50YXggZXJyb3IgdGhhdCBnZW5lcmF0ZXMgYW4gaW50ZXJuYWwgY29tcGlsZXIgZXJyb3IK
Ly9vbiBnY2MtMi45NS4zCiAgZW51bSBTOjpTUyBzdGF0ZTI7CgogIHJldHVybiAwOwp9CiAgICAg
IAo=
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/8089: c++ code with syntax error causes internal compiler error segfault
@ 2002-10-04 8:14 lerdsuwa
0 siblings, 0 replies; 3+ messages in thread
From: lerdsuwa @ 2002-10-04 8:14 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, jsantiago, nobody
Synopsis: c++ code with syntax error causes internal compiler error segfault
State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Fri Oct 4 08:14:24 2002
State-Changed-Why:
Confirmed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8089
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/8089: c++ code with syntax error causes internal compiler error segfault
@ 2003-01-01 13:47 neroden
0 siblings, 0 replies; 3+ messages in thread
From: neroden @ 2003-01-01 13:47 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, jsantiago, nobody
Synopsis: c++ code with syntax error causes internal compiler error segfault
State-Changed-From-To: analyzed->closed
State-Changed-By: neroden
State-Changed-When: Wed Jan 1 05:47:12 2003
State-Changed-Why:
With mainline (2003-01-01), we get the error:
seg.cxx: In function `int main()':
seg.cxx:16: error: `S::SS' referred to as enum
No more ICE; closing.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8089
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-01-01 13:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-29 11:26 c++/8089: c++ code with syntax error causes internal compiler error segfault jsantiago
2002-10-04 8:14 lerdsuwa
2003-01-01 13:47 neroden
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).