brintos

brintos / llvm-project-archived public Read only

0
0
Text · 323 B · bf882db Raw
5 lines · cpp
1// RUN: %clang_cc1 -verify -frecovery-ast %s2 3template<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 '::'}}4int *q = p<int>; // expected-note{{in instantiation of variable template specialization 'p<int>' requested here}}5