Skip to content

Commit 62f606a

Browse files
authored
Add more comments to the test
1 parent f9e68fd commit 62f606a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/test/SemaCXX/bug149071318.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@ namespace std { // fake std namespace; to reproduce the bug, a CXXConversionDecl
2121
}
2222

2323
void test(std::Y &y) {
24+
// Here `y.x` involves an implicit cast and calls the conversion overloading, which has no identifier:
2425
printf("%s", y.x); // expected-warning{{function 'printf' is unsafe}} expected-note{{}}
2526
}

0 commit comments

Comments
 (0)