blob: 92d20377e88686a54f980289bba9a44b6f5e2ae1 [file] [log] [blame]
Douglas Gregor3a348c82011-07-14 04:54:23 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3// FIXME: The diagnostics and recovery here are very, very poor.
4
5// PR10355
Kaelyn Uhrainf0c1d8f2011-08-03 20:36:05 +00006template<typename T> void template_id1() { // expected-note {{'template_id1' declared here}} \
John McCall6dbba4f2011-10-11 23:14:30 +00007 // expected-note {{possible target for call}}
Kaelyn Uhrainf0c1d8f2011-08-03 20:36:05 +00008 template_id2<> t; // expected-error {{no template named 'template_id2'; did you mean 'template_id1'?}} \
9 // expected-error {{expected ';' after expression}} \
John McCall6dbba4f2011-10-11 23:14:30 +000010 // expected-error {{reference to overloaded function could not be resolved; did you mean to call it?}} \
Kaelyn Uhrainf0c1d8f2011-08-03 20:36:05 +000011 // expected-error {{use of undeclared identifier 't'}}
Douglas Gregor3a348c82011-07-14 04:54:23 +000012 }