This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11113] New: explicit specialization of a typedef not diagnosed
- From: "sebor at roguewave dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jun 2003 17:20:43 -0000
- Subject: [Bug c++/11113] New: explicit specialization of a typedef not diagnosed
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11113
Summary: explicit specialization of a typedef not diagnosed
Product: gcc
Version: 3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: sebor@roguewave.com
CC: gcc-bugs@gcc.gnu.org
Tha ill-formed (AFAICS, according to 14.7.2, p2) program below compiles with gcc
3.2 with no diagnostic.
Regards
Martin
$ cat t.cpp; g++ -c -pedantic -W t.cpp
template <class T>
struct A { };
template <class T>
struct B { typedef T type; };
template class B<A<int> >::type;