[Bug c++/59950] Bogus diagnostic "taking address of temporary" taking address of trivial no-op assignment to temporary

richard-gccbugzilla at metafoo dot co.uk gcc-bugzilla@gcc.gnu.org
Sun Jan 26 21:52:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59950

--- Comment #1 from Richard Smith <richard-gccbugzilla at metafoo dot co.uk> ---
Additional clarification was requested: "Foo() = Foo()" means
"Foo().operator=(Foo())". The 'operator=' has return type 'Foo&', thus that
expression is not a temporary.



More information about the Gcc-bugs mailing list