Issue 107778
Summary [Clang] Failure to compile templated comparison of templated class where member variable and class have the same name
Labels clang
Assignees
Reporter Infirmarian
    When constructing a templated class with a member variable of the same name as the class, the use of that member variable in a templated function that uses the less-than operator causes compilation failure. This isn't the case for member variables with a name different from the enclosing class, or if the class, or if comparison function isn't templated, and also compiles perfectly fine in GCC

Godbolt: https://godbolt.org/z/r9TfP66eG
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to