http://llvm.org/bugs/show_bug.cgi?id=22370
Richard Smith <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution|--- |INVALID --- Comment #1 from Richard Smith <[email protected]> --- Here's an example from the C++ standard, which is (up to naming) identical to your attachment: struct Banana { }; struct Enigma { operator const Banana(); }; Banana &&banana2 = Enigma(); // ill-formed This was made ill-formed by the resolution of a DR (bugfix) applied retroactively to C++11: http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1604 This agrees with the usual rule in C++: you only get one user-defined conversion in an initialization; you don't get to call both Enigma::operator const Banana() *and* the Banana copy constructor here. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ LLVMbugs mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
