2011-04-23 02:52:25 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
|
|
|
|
// Don't crash.
|
|
|
|
|
2011-04-27 12:48:22 +08:00
|
|
|
template<typename>struct ae_same;
|
2011-07-15 05:35:26 +08:00
|
|
|
template<typename>struct ts{}ap() // expected-error {{expected ';' after struct}} expected-error {{requires a type specifier}}
|
2011-04-27 12:48:22 +08:00
|
|
|
{ts<a>::ap<ae_same<int>::&ae_same<>>::p(a); }; // expected-error {{use of undeclared identifier 'a'}}
|