Skip to content

Commit c506de0

Browse files
zygoloidEndilll
andauthored
Apply suggestion from @Endilll
Co-authored-by: Vlad Serebrennikov <[email protected]>
1 parent 1226531 commit c506de0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/test/CXX/drs/cwg2xx.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,8 @@ namespace cwg212 { // cwg212: yes
242242
// OK, calls void* overload.
243243
int *a = overload(p);
244244

245-
Base<int> *q = p; // expected-error {{cannot initialize}}
245+
Base<int> *q = p;
246+
// expected-error@-1 {{cannot initialize a variable of type 'Base<int> *' with an lvalue of type 'Derived<int> *'}}
246247
}
247248

248249
template<typename T> struct Base {};

0 commit comments

Comments
 (0)