Open danakj opened 1 year ago
This should be labeled for C++20
@llvm/issue-subscribers-c-20
The GCC bug mentions https://cplusplus.github.io/CWG/issues/2589.html however it's not clear that caching is the problem in this case. Reordering the uses of the HasTag concept does not change the output.
GCC bug report: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107544
I don't know which compiler is right, but all three give a different output.
https://godbolt.org/z/7Pq3eWhc8
Clang output (the concept sees private data if used in friend):
GCC output (the concept always sees private data):
MSVC output (the concept never sees private data):