Debian Codegraph @

clang/test/SemaTemplate/GH183075.cpp

raw
1 // RUN: %clang_cc1 -verify %s
2
3 int bar; // #bar
4
5 int foo()
6 {
7 // FIXME: Bad error recovery.
8 (void)(baz<> + baz<>);
9 // expected-error@-1 2{{use of undeclared identifier 'baz'; did you mean 'bar'?}}
10 // expected-note@#bar 2{{'bar' declared here}}
11 // expected-error@-3 2{{'bar' is expected to be a non-type template, but instantiated to a class template}}
12 // expected-note@#bar 2{{class template declared here}}
13 }