3 // Origin: Volker Reichelt <reichelt@gcc.gnu.org>
5 // PR c++/11616: Incorrect line number in diagnostics
7 template <int> struct A
12 int baz() { return A<0>::i; }
16 static void foo (int); // { dg-error "candidates" }
19 template <typename T> struct C
21 virtual void bar() const { T::foo(); } // { dg-error "no matching function" }
24 C<B> c; // { dg-error "instantiated" }