http://llvm.org/bugs/show_bug.cgi?id=11328
Eli Friedman <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution| |INVALID --- Comment #1 from Eli Friedman <[email protected]> 2011-11-07 13:10:17 CST --- clang is behaving correctly; there is no usable copy-assignment operator for Test::Foo. Note that if you add a member like "struct Bar { Bar& operator=(const Bar&); } bar;" to Test, gcc gives an error like the following: <stdin>: In member function ‘Test& Test::operator=(const Test&)’: <stdin>:4: error: passing ‘volatile Test::Foo’ as ‘this’ argument of ‘Test::Foo& Test::Foo::operator=(const Test::Foo&)’ discards qualifiers <stdin>: In function ‘int main()’: <stdin>:35: note: synthesized method ‘Test& Test::operator=(const Test&)’ first required here -- 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. _______________________________________________ LLVMbugs mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
