1 // { dg-options "-std=c++0x" }
2 template<typename... T, typename = T> struct A {}; // { dg-error "must be at the end" }
5 template<template<typename... T, typename = T> class U> struct B // { dg-error "must be at the end" }
7 template<int> U<int> foo(); // { dg-error "mismatch|constant|invalid|invalid" }