Debian Codegraph @

gcc/testsuite/g++.dg/template/crash101.C

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