This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54665] [C++11] template alias to template does not work
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 21 Sep 2012 23:46:39 +0000
- Subject: [Bug c++/54665] [C++11] template alias to template does not work
- Auto-submitted: auto-generated
- References: <bug-54665-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54665
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-09-21 23:46:39 UTC ---
The correct syntax is:
template <typename Second>
using TypedefName = SomeType<OtherType, Second, 5>;
ie, no "typename". You can find a good set of examples in the testsuite as:
testsuite/g++.dg/cpp0x/alias-decl-*