You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clang/test/SemaCXX/conversion-function.cpp
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -494,3 +494,10 @@ using Result = B<int>::Lookup<int>;
494
494
using Result = int (A2<int>::*)();
495
495
}
496
496
#endif
497
+
498
+
namespaceGH121706 {
499
+
structS {
500
+
*operatorint(); // expected-error {{cannot specify any part of a return type in the declaration of a conversion function; put the complete type after 'operator'}}
501
+
**operatorchar(); // expected-error {{cannot specify any part of a return type in the declaration of a conversion function; put the complete type after 'operator'}}
0 commit comments