We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1226531 commit c506de0Copy full SHA for c506de0
clang/test/CXX/drs/cwg2xx.cpp
@@ -242,7 +242,8 @@ namespace cwg212 { // cwg212: yes
242
// OK, calls void* overload.
243
int *a = overload(p);
244
245
- Base<int> *q = p; // expected-error {{cannot initialize}}
+ Base<int> *q = p;
246
+ // expected-error@-1 {{cannot initialize a variable of type 'Base<int> *' with an lvalue of type 'Derived<int> *'}}
247
}
248
249
template<typename T> struct Base {};
0 commit comments