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++/60471] New: template aliasing doesn't compile (using aa = bb)


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

            Bug ID: 60471
           Summary: template aliasing doesn't compile (using aa = bb)
           Product: gcc
           Version: 4.6.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marmoo1024 at gmail dot com

Created attachment 32313
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32313&action=edit
output of "g++ b.cpp -o b -std=c++0x  -v"

template <class T> class base { public: T value;};
template <class T> using alias = base<T>;
int main () {}

compiles with clang++, but not with "g++ -std=c++0x"

my gcc is the standard on Ubuntu 12.04.4 LTS


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