aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/vt-34052.C
blob: 1036537eb9c405d0b60cc23258f6fdd3b8308f12 (plain)
1
2
3
4
5
6
7
8
// { dg-do compile { target c++11 } }
template<typename... T, typename = T> struct A {}; // { dg-error "must be at the end" }


template<template<typename... T, typename = T> class U> struct B // { dg-error "must be at the end" }
{
  template<int> U<int> foo(); // { dg-error "mismatch|constant|invalid|invalid" }
};