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++/52343] New: [C++11] alias-definition dont work in `template<class>` params type


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;

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


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