This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53102] Misplaced 'typename' gives access to private type
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 24 Apr 2012 11:26:58 +0000
- Subject: [Bug c++/53102] Misplaced 'typename' gives access to private type
- Auto-submitted: auto-generated
- References: <bug-53102-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53102
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-04-24
Ever Confirmed|0 |1
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-04-24 11:26:58 UTC ---
4.4 rejects it with:
t.cc:8: error: using 'typename' outside of template
But later releases silently accept it in c++98 or c++11 mode
(N.B. using 'typenme' outside of templates is valid in C++11)