[LLVMbugs] [Bug 12692] Confusing error message when using illegal explicitly-defaulted function

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Apr 28 23:35:12 PDT 2012


Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|                            |FIXED

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> 2012-04-29 01:35:12 CDT ---
This has been fixed for several weeks, but this particular case triggered an
assert (which is fixed in r155784).

With trunk clang, we produce:

tmp.cpp:22:7: error: overload resolution selected implicitly-deleted move
assignment operator
   a1 = std::move(a2);
tmp.cpp:11:7: note: explicitly defaulted function was implicitly deleted here
   A& operator=(A&&) = default;
tmp.cpp:13:9: note: move assignment operator of 'A' is implicitly deleted
because field 'm_i' is of reference type 'int &'
   int& m_i;

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list