Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / template / ttp7.C
blob0bcaa8f729229c0e10b5f4c2ea00b8702d6e9673
1 // { dg-do compile }
2 // Contributed by Andrew Pinski <pinskia at gcc dot gnu dot org>
3 // PR c++/13810: ICE while parsing invalid default argument for a 
4 //   template template parameter.
6 struct X;
7 template<int> struct A {};   
9 template<template<int> class = X > struct B1 {};     // { dg-error "as a default value" }
10 template<template<int> class = A<0> > struct B2 {};  // { dg-error "as a default value" }
12 template <typename T>
13 struct S {
14   template <template <typename> class = S>   struct I1 {};  // { dg-error "as a default value" }
15   template <template <typename> class = ::S> struct I2 {};