Argyrios Kyrtzidis | 8e4be0b | 2011-04-22 18:52:25 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
2 | |||||
3 | // Don't crash. | ||||
4 | |||||
Douglas Gregor | 8b02cd0 | 2011-04-27 04:48:22 +0000 | [diff] [blame] | 5 | template<typename>struct ae_same; |
Argyrios Kyrtzidis | 8e4be0b | 2011-04-22 18:52:25 +0000 | [diff] [blame] | 6 | template<typename>struct ts{}ap() |
Douglas Gregor | 8b02cd0 | 2011-04-27 04:48:22 +0000 | [diff] [blame] | 7 | {ts<a>::ap<ae_same<int>::&ae_same<>>::p(a); }; // expected-error {{use of undeclared identifier 'a'}} |