Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / template / nontype6.C
blob298ce82591c98cfaa9eda13a45bf86fbf33d866a
1 // { dg-do compile }
2 // Origin: <v dot haisman at sh dot cvut dot cz>
3 // PR c++/13957: Improved error message for type in template (when non-type
4 //  is expected).
6 template <class T>
7 struct A
9   typedef int type;
12 template <class T>
13 void func(void)
15   (void)A<T>::type();    // { dg-error "if a type is meant" }
16 // { dg-error "parsed as a non-type" "non-type" { target *-*-* } 15 }
19 template void func<float>(void);    // { dg-error "instantiated from here" }