1 2 3 4 5 6 7 8 9 10 11 12
// PR c++/44039 struct locale { }; template<class charT> void foo() { locale::locale(); } // { dg-error "cannot call|function-style" } void bar() { foo<char>(); }