public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/52343] New: [C++11] alias-definition dont work in `template<class>` params type
@ 2012-02-22 18:49 trashyankes at wp dot pl
  2012-02-22 23:24 ` [Bug c++/52343] " daniel.kruegler at googlemail dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: trashyankes at wp dot pl @ 2012-02-22 18:49 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52343

             Bug #: 52343
           Summary: [C++11] alias-definition dont work in
                    `template<class>` params type
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: trashyankes@wp.pl


gcc version 4.7.0 20120203 (experimental) (niXman build)

code:
---------------------------
---------------------------

class bb {};
template<typename A>
using a1 = int; //same with char, bool and long
template<typename C>
using a2 = bb;
template<typename D>
using a3 = double;

template<template<class> class T>
struct aa
{

};

aa<a1> zz1; //error: integral expression 'a1' is not constant WTF??
aa<a2> zz2;
aa<a3> zz3;

---------------------------
---------------------------


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-01-07 10:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-22 18:49 [Bug c++/52343] New: [C++11] alias-definition dont work in `template<class>` params type trashyankes at wp dot pl
2012-02-22 23:24 ` [Bug c++/52343] " daniel.kruegler at googlemail dot com
2012-02-23  9:54 ` redi at gcc dot gnu.org
2012-11-06 20:54 ` cppljevans at suddenlink dot net
2012-11-06 20:55 ` cppljevans at suddenlink dot net
2012-12-20 15:25 ` dodji at gcc dot gnu.org
2012-12-22 16:08 ` dodji at seketeli dot org
2013-01-07  8:04 ` dodji at gcc dot gnu.org
2013-01-07 10:44 ` dodji at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).