http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50056
Jason Merrill changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
CC|
I'm not sure if this analysis is really correct but it seems reasonable to
me.
Otherwise we would have a reference without an object.
Best regards,
W. Roehrl
"redi at gcc dot gnu.org"
12.08.2011 14:47
An
wolfgang.roe...@gi-de.com
Kopie
Thema
[Bug c++/50056] Binding a tem
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50056
--- Comment #1 from Jonathan Wakely 2011-08-12
12:46:42 UTC ---
Are you sure G++ isn't correct?
The cast creates a temporary reference, which binds to the temporary object,
then initalizes 's' with the temporary reference. That means the temporar