[LLVMbugs] [Bug 10043] Failure to warn about inaccessible copy constructor of member of class in -Wbind-to-temporary-copy
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Jun 1 09:05:22 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10043
Douglas Gregor <dgregor at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Douglas Gregor <dgregor at apple.com> 2011-06-01 11:05:21 CDT ---
g(Y()) doesn't warn in C++98 mode, and never did, because implicitly-declared
copy constructors are always public. We would only detect a problem if we went
ahead and caused the copy constructor to be implicitly defined, but at that
point it's going to be fairly tricky to avoid getting a hard error later on
down the line.
--
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