2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / other / error6.C
blob21180d765ab1bf4cc890b42df29e452e0b43cb22
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 // Update: Better to make it supported, I think...
6 template <int N>
7 struct A {};
9 struct B
11   static int foo(void);
14 template <class T>
15 A<sizeof(T::foo())> func(void);
17 int main()
19   func<B>();