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
{{ message }}
Repository navigation
[BUG] [Clang] UFCS on identifier also declared at type scope fails #555
The type of this and the unrelated type share f.
In a non-this member function,
UFCS on f with the unrelated type breaks Clang.
GCC and MSVC work, so it may be a Clang bug: https://compiler-explorer.com/z/vEEovohd3.
changed the title [-][BUG] [Clang] UFCS on shared identifier between types in non-`this` member function[/-][+][BUG] [Clang] UFCS on identifier also declared at type scope fails[/+]on Aug 24, 2023
Activity
JohelEGP commentedon Jul 21, 2023
May be related to llvm/llvm-project#58872.
JohelEGP commentedon Aug 24, 2023
You don't actually need to involve other types (https://cpp2.godbolt.org/z/qo6PErbYq, https://compiler-explorer.com/z/EeMsaj1ca):
[-][BUG] [Clang] UFCS on shared identifier between types in non-`this` member function[/-][+][BUG] [Clang] UFCS on identifier also declared at type scope fails[/+]JakeShirley commentedon Dec 3, 2023
Hitting this with Apple Clang 14.0