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

2016-03-18 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59950 Martin Sebor changed: What|Removed |Added Keywords||rejects-valid Last

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

2015-03-19 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59950 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added Status|UNCONFIRMED |NEW

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

2014-01-26 Thread richard-gccbugzilla at metafoo dot co.uk
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.