This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]