public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/9829: [3.2/3.3 regression] Missing colon in nested namespace usage causes ICE
@ 2003-02-24 12:56 Andrew.Carson
0 siblings, 0 replies; 2+ messages in thread
From: Andrew.Carson @ 2003-02-24 12:56 UTC (permalink / raw)
To: gcc-gnats
>Number: 9829
>Category: c++
>Synopsis: [3.2/3.3 regression] Missing colon in nested namespace usage causes ICE
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Mon Feb 24 12:56:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Andrew Carson
>Release: unknown-1.0
>Organization:
>Environment:
gcc-3.2.3-20030222
gcc-3.3-20030222
>Description:
The following (illegal) code snippet causes an ICE under gcc-3.2.3-20030222 and gcc-3.3-20030222
ice.cxx:
--------------------------------------
namespace a {
namespace b {
void foo();
}
}
void
a::b:foo()
{
}
---------------------------
% g++32 ice.cxx
ice.cxx:8: `a::b' as declarator
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
% g++33 ice.cxx
ice.cxx:8: internal compiler error: in grokdeclarator, at cp/decl.c:10394
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
Whereas gcc-3.4-20030222 and gcc-3.0.x 'work'
% g++34 ice.cxx
ice.cxx:8: error: invalid function declaration
% g++30 ice.cxx
ice.cxx:8: `a::b' as declarator (compiler error)
ice.cxx:8: syntax error before `:' token
[ Seems to occur on both an ix86 machine and a Sun Sparc machine... ]
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/9829: [3.2/3.3 regression] Missing colon in nested namespace usage causes ICE
@ 2003-02-24 15:33 bangerth
0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-02-24 15:33 UTC (permalink / raw)
To: Andrew.Carson, gcc-bugs, gcc-prs, nobody
Synopsis: [3.2/3.3 regression] Missing colon in nested namespace usage causes ICE
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Mon Feb 24 15:33:46 2003
State-Changed-Why:
Confirmed. A regression in 3.2 and 3.3, but fixed in 3.4
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9829
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-02-24 15:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-24 12:56 c++/9829: [3.2/3.3 regression] Missing colon in nested namespace usage causes ICE Andrew.Carson
2003-02-24 15:33 bangerth
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).