Debian Codegraph @

gcc/testsuite/g++.dg/parse/crash81.C

raw
1 // PR c++/120876
2 // { dg-do compile { target c++11 } }
3
4 template <typename T>
5 struct S {
6 static bool foo (decltype (bar (T {}))); // { dg-error "'bar' was not declared in this scope; did you mean 'baz'\\\?" }
7 static constexpr bool s = foo (0);
8 };
9
10 void
11 baz ()
12 {
13 S <int>::s;
14 }