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
__attribute__((overloadable)) void func_bad(...); // error
void func_good(...) __attribute__((overloadable)); // okay
[[clang::overloadable]] void func_also_bad(...); // error
void func_also_bad_again(...) [[clang::overloadable]]; // error, this is the only diagnostic that makes sense to me
void okay_now_Im_just_baffled [[clang::overloadable]](...); // okay
The only diagnostic that makes sense (to me) is the one on func_also_bad_again() due to it being written in the type position and not being a type attribute.
https://godbolt.org/z/7qWjWdbGP is a live example. I think the two cases labeled error with no other comments should also be accepted.
The text was updated successfully, but these errors were encountered:
Endilll
added
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
and removed
clang:diagnostics
New/improved warning or error message in Clang, but not in clang-tidy or static analyzer
labels
Jan 20, 2024
[[clang::overloadable]] void func_also_bad(...); // error
void func_also_bad_again(...) [[clang::overloadable]]; // error, this is the only diagnostic that makes sense to me
The only diagnostic that makes sense (to me) is the one on `func_also_bad_again()` due to it being written in the type position and not being a type attribute.
https://godbolt.org/z/7qWjWdbGP is a live example. I think the two cases labeled `error` with no other comments should also be accepted.
</details>
Consider:
The only diagnostic that makes sense (to me) is the one on
func_also_bad_again()
due to it being written in the type position and not being a type attribute.https://godbolt.org/z/7qWjWdbGP is a live example. I think the two cases labeled
error
with no other comments should also be accepted.The text was updated successfully, but these errors were encountered: