public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/5759: internal compiler error with const static template class attributes
@ 2003-01-01 22:10 neroden
0 siblings, 0 replies; 3+ messages in thread
From: neroden @ 2003-01-01 22:10 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, gunnar, nobody
Synopsis: internal compiler error with const static template class attributes
State-Changed-From-To: analyzed->closed
State-Changed-By: neroden
State-Changed-When: Wed Jan 1 14:10:24 2003
State-Changed-Why:
Another parser bug. Doesn't ICE, and gives rather nice errors, in mainline as of 2003-01-01.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5759
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/5759: internal compiler error with const static template class attributes
@ 2002-02-23 11:13 rodrigc
0 siblings, 0 replies; 3+ messages in thread
From: rodrigc @ 2002-02-23 11:13 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, gunnar, nobody
Synopsis: internal compiler error with const static template class attributes
State-Changed-From-To: open->analyzed
State-Changed-By: rodrigc
State-Changed-When: Sat Feb 23 11:10:21 2002
State-Changed-Why:
ICE reproduced in gcc 3.0.4 and gcc 3.1.
This is illegal code. Compiling with the Digital Unix
C++ compiler:
cxx: Error: a.cc, line 2: data member initializer is not allowed
{ const static char bar[] = { -1 }; };
--------------------------^
cxx: Info: 1 error detected in the compilation of "a.cc".
It would be nice if gcc did not ICE, though.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5759
^ permalink raw reply [flat|nested] 3+ messages in thread
* c++/5759: internal compiler error with const static template class attributes
@ 2002-02-23 8:30 gunnar
0 siblings, 0 replies; 3+ messages in thread
From: gunnar @ 2002-02-23 8:30 UTC (permalink / raw)
To: gcc-gnats
>Number: 5759
>Category: c++
>Synopsis: internal compiler error with const static template class attributes
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Feb 23 07:56:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Gunnar Kedenburg
>Release: gcc version 3.0.4, gcc version 2.95.4 20011002 (Debian prerelease)
>Organization:
>Environment:
Linux 2.4.16
>Description:
internal compiler error when parsing:
template<class T> struct foo
{ const static char bar[] = { -1 }; };
commandline:
g++ test.cc
>How-To-Repeat:
compile the code above
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-01-01 22:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-01 22:10 c++/5759: internal compiler error with const static template class attributes neroden
-- strict thread matches above, loose matches on Subject: below --
2002-02-23 11:13 rodrigc
2002-02-23 8:30 gunnar
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).