PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / template / crash101.C
blobc59737a8938900bc1d94d4694e87cb37d2535c4c
1 // PR c++/44039
3 struct locale {  };
5 template<class charT>
6   void
7   foo()
8   { locale::locale(); } // { dg-error "cannot call|function-style" }
10 void
11 bar()
12 { foo<char>(); }