OSDN Git Service

PR c++/31598
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / other / error6.C
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.
4
5 template <int N>
6 struct A {};
7
8 struct B
9 {
10   static int foo(void);
11 };
12
13 template <class T>
14 A<sizeof(T::foo())> func(void);
15
16 int main()
17 {
18   func<B>();  // { dg-error "sorry, unimplemented" }
19 }