public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/8928: gcc fails to reject an ill-formed specialization of a typedef
@ 2002-12-13 9:06 sebor
0 siblings, 0 replies; 3+ messages in thread
From: sebor @ 2002-12-13 9:06 UTC (permalink / raw)
To: gcc-gnats
>Number: 8928
>Category: c++
>Synopsis: gcc fails to reject an ill-formed specialization of a typedef
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Dec 13 09:06:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: sebor@roguewave.com
>Release: gcc 3.2
>Organization:
>Environment:
>Description:
The ill-formed program below compiles w/o an error with gcc 3.2.
$ cat t.cpp; gcc --version; gcc t.cpp -c; echo $?
namespace N {
template <class T, class U> struct S { };
typedef S<int, int> Sii;
}
N::Sii<int, int> s; // Sii is not a template
gcc (GCC) 3.2
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
0
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/8928: gcc fails to reject an ill-formed specialization of a typedef
@ 2003-01-12 23:53 reichelt
0 siblings, 0 replies; 3+ messages in thread
From: reichelt @ 2003-01-12 23:53 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, sebor
Synopsis: gcc fails to reject an ill-formed specialization of a typedef
State-Changed-From-To: analyzed->closed
State-Changed-By: reichelt
State-Changed-When: Sun Jan 12 15:53:07 2003
State-Changed-Why:
The bug is fixed in gcc 3.4-20021230 with the new parser.
We now get the following error message:
PR8928.cc:8: error: expected unqualified-id
PR8928.cc:8: error: expected `,' or `;'
(Testcase in preparation.)
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8928
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/8928: gcc fails to reject an ill-formed specialization of a typedef
@ 2002-12-13 9:20 reichelt
0 siblings, 0 replies; 3+ messages in thread
From: reichelt @ 2002-12-13 9:20 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, sebor
Synopsis: gcc fails to reject an ill-formed specialization of a typedef
State-Changed-From-To: open->analyzed
State-Changed-By: reichelt
State-Changed-When: Fri Dec 13 09:20:38 2002
State-Changed-Why:
Confirmed.
gcc fails at least since gcc 2.95.x to reject the code.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8928
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-01-12 23:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-13 9:06 c++/8928: gcc fails to reject an ill-formed specialization of a typedef sebor
2002-12-13 9:20 reichelt
2003-01-12 23:53 reichelt
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).