OSDN Git Service

PR c++/51406
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / alias-decl-15.C
1 // Origin PR c++/51194
2 // { dg-options "-std=c++0x" }
3
4 template<class U, class V> //#1
5 struct foo {}; // { dg-error "provided for|foo" }
6
7 template<class U, class V=char>
8 struct P {};
9
10 template<template<class... U> class... TT>
11 struct bar {
12     template<class... Args>
13     using mem = P<TT<Args...>...>;//#2 { dg-error "wrong number of|arguments" }
14 };
15
16 bar<foo>::mem<int, char> b;//#3 { dg-error "invalid type" }
17