You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5 lines
323 B
5 lines
323 B
// RUN: %clang_cc1 -verify -frecovery-ast %s
|
|
|
|
template<typename T> int *p = &void(T::error); // expected-error{{cannot take the address of an rvalue}} expected-error{{type 'int' cannot be used prior to '::'}}
|
|
int *q = p<int>; // expected-note{{in instantiation of variable template specialization 'p<int>' requested here}}
|