This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11113] explicit instantiation of a typedef not diagnosed
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jun 2003 11:35:56 -0000
- Subject: [Bug c++/11113] explicit instantiation of a typedef not diagnosed
- References: <20030606172042.11113.sebor@roguewave.com>
- 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
------- Additional Comments From giovannibajo@libero.it 2003-06-09 11:35 -------
The code is invalid, but I think it's another part of the standard that should
be enforced. In fact, a typedef is an alias of a type, so $14.7.2/1 does not
apply, since the name does effectively names a class.
The problem is earlier: the explicit instantion syntax requires the use of an
elaborated-type-specifier, which does not allow the use of typedefs
($7.1.5.3/2). We already have an open bug to track this (PR11036). Anyway, I'll
keep this open to be 100% sure that this problem will get fixed.