public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/5723: GCC 3.0.3 crashes when compiling template forward declaration
@ 2002-12-30 14:21 reichelt
0 siblings, 0 replies; 3+ messages in thread
From: reichelt @ 2002-12-30 14:21 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, matthias, nobody
Synopsis: GCC 3.0.3 crashes when compiling template forward declaration
State-Changed-From-To: analyzed->closed
State-Changed-By: reichelt
State-Changed-When: Mon Dec 30 14:21:29 2002
State-Changed-Why:
Fixed in gcc 3.4 with the new parser.
The compiler now issues a correct error message.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5723
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/5723: GCC 3.0.3 crashes when compiling template forward declaration
@ 2002-05-20 7:02 lerdsuwa
0 siblings, 0 replies; 3+ messages in thread
From: lerdsuwa @ 2002-05-20 7:02 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, matthias, nobody
Synopsis: GCC 3.0.3 crashes when compiling template forward declaration
State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Mon May 20 07:02:02 2002
State-Changed-Why:
Confirmed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5723
^ permalink raw reply [flat|nested] 3+ messages in thread
* c++/5723: GCC 3.0.3 crashes when compiling template forward declaration
@ 2002-02-18 9:46 matthias
0 siblings, 0 replies; 3+ messages in thread
From: matthias @ 2002-02-18 9:46 UTC (permalink / raw)
To: gcc-gnats
>Number: 5723
>Category: c++
>Synopsis: GCC 3.0.3 crashes when compiling template forward declaration
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Mon Feb 18 09:46:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Matthias Kleinmann
>Release: 3.0.3
>Organization:
>Environment:
System: Linux 2.4.17-xfs #2 Sun Feb 3 19:44:37 CET 2002 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc-3.0.3/configure --enable-threads --enable-languages=c,c++
>Description:
g++ segfaults if you correctly do a forward declaration of a class, wich was
previoulsy declared within a template class. Maybe it is not even legal code.
>How-To-Repeat:
compile this as t.cc with "g++ -save-temps t.cc" :
---
template <typename T>
class class1{class class2;};
template <typename T>
class class1<T>::class2;
int main(){return 0;}
---
to produce this t.ii:
---
# 1 "t.cc"
template <typename T>
class class1{class class2;};
template <typename T>
class class1<T>::class2;
int main(){return 0;}
---
and this error:
---
t.cc:5: Internal error: Segmentation fault
---
>Fix:
I do not see any need for such a forward declaration at all.
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-12-30 22:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-30 14:21 c++/5723: GCC 3.0.3 crashes when compiling template forward declaration reichelt
-- strict thread matches above, loose matches on Subject: below --
2002-05-20 7:02 lerdsuwa
2002-02-18 9:46 matthias
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).