Merge reload-branch up to revision 101000
[official-gcc.git] / gcc / testsuite / g++.dg / other / error6.C
blob9b403c7207bc20e4b0a400d5cabffc9de46eb648
1 // { dg-do compile }
2 // Make sure we emit a decent error message when trying to mangle an
3 //  expression not supported by the C++ ABI due to a defect.
5 template <int N>
6 struct A {};
8 struct B
10   static int foo(void);
13 template <class T>
14 A<sizeof(T::foo())> func(void);
16 int main()
18   func<B>();  // { dg-error "sorry, unimplemented" }