This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12216] New: Bad "implicit typename" warning
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Sep 2003 21:01:27 -0000
- Subject: [Bug c++/12216] New: Bad "implicit typename" warning
- 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=12216
Summary: Bad "implicit typename" warning
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: igodard at pacbell dot net
CC: gcc-bugs at gcc dot gnu dot org
3.3.1 warns about implicit typename on identifier declared in an (inherited) typedef. A typedef can't be anything but a type, so the warning is incorrect. If you attempt to remove the warning by uncommenting the "/* typename */" then you get a compile error.
Ivan