[llvm-bugs] [Bug 23118] Poor error message for incompatible member function reference qualifiers

via llvm-bugs llvm-bugs at lists.llvm.org
Sun May 5 20:46:15 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=23118

David Stone <david at doublewise.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from David Stone <david at doublewise.net> ---
Fixed in clang 6.0.0

<source>:6:2: error: 'this' argument to member function 'f' is an rvalue, but
function has non-const lvalue ref-qualifier

        S{}.f();

        ^

<source>:2:7: note: 'f' declared here

        void f() & {}

             ^

1 error generated.

Compiler returned: 1

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190506/3e907c77/attachment.html>


More information about the llvm-bugs mailing list