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...
5 
6 template <int N>
7 struct A {};
8 
9 struct B
10 {
11   static int foo(void);
12 };
13 
14 template <class T>
15 A<sizeof(T::foo())> func(void);
16 
main()17 int main()
18 {
19   func<B>();
20 }
21