[Bug c++/54665] [C++11] template alias to template does not work

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Fri Sep 21 23:47:00 GMT 2012


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-*



More information about the Gcc-bugs mailing list