This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/8928: gcc fails to reject an ill-formed specialization of a typedef
- From: sebor at roguewave dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 13 Dec 2002 17:00:07 -0000
- Subject: c++/8928: gcc fails to reject an ill-formed specialization of a typedef
- Reply-to: sebor at roguewave dot com
>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: