summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/crash101.C
blob: c59737a8938900bc1d94d4694e87cb37d2535c4c (plain)
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>(); }