Issue 76358
Summary clang trunk does not compile overloaded member functions with ref-qualifier
Labels clang
Assignees
Reporter forworldm
    ```c++
struct C {
    template<int> void f() && {}
    template<typename T> void f() const {}
};
```
```
<source>:3:31: error: cannot overload a member function without a ref-qualifier with a member function with ref-qualifier '&&'
    3 |     template<typename T> void f() const {}
 |                               ^
<source>:2:24: note: previous declaration is here
    2 |     template<int> void f() && {}
      | ^
1 error generated.
Compiler returned: 1
```

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

Reply via email to