[Bug c++/54293] When a reference is bound to subobject of a temporary, lifetime of the temporary is not extended

2016-10-05 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54293 Jason Merrill changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug c++/54293] When a reference is bound to subobject of a temporary, lifetime of the temporary is not extended

2016-10-05 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54293 --- Comment #13 from Jason Merrill --- Author: jason Date: Wed Oct 5 22:58:55 2016 New Revision: 240819 URL: https://gcc.gnu.org/viewcvs?rev=240819&root=gcc&view=rev Log: PR c++/54293 - binding reference to member of temporary

[Bug c++/54293] When a reference is bound to subobject of a temporary, lifetime of the temporary is not extended

2016-10-05 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54293 Jason Merrill changed: What|Removed |Added CC||potswa at mac dot com --- Comment #12 fr

[Bug c++/54293] When a reference is bound to subobject of a temporary, lifetime of the temporary is not extended

2012-08-21 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54293 --- Comment #11 from Daniel Krügler 2012-08-21 08:07:28 UTC --- (In reply to comment #10) > > In other words: In this case IsValid(&ref_int) will hold for the same > > reasons > > as it holds for IsValid(&ref_obj). > > That is true, and I didn'

[Bug c++/54293] When a reference is bound to subobject of a temporary, lifetime of the temporary is not extended

2012-08-21 Thread jpalecek at web dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54293 --- Comment #10 from Jiří Paleček 2012-08-21 07:51:55 UTC --- (In reply to comment #9) > (In reply to comment #8) > > > I agree with your analysis, but would like to point out that there is > > > change > > > planned to essentially this part of

[Bug c++/54293] When a reference is bound to subobject of a temporary, lifetime of the temporary is not extended

2012-08-20 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54293 --- Comment #9 from Daniel Krügler 2012-08-21 06:13:50 UTC --- (In reply to comment #8) > > I agree with your analysis, but would like to point out that there is change > > planned to essentially this part of the wording due to > > > > http://w

[Bug c++/54293] When a reference is bound to subobject of a temporary, lifetime of the temporary is not extended

2012-08-20 Thread jpalecek at web dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54293 --- Comment #8 from Jiří Paleček 2012-08-20 22:52:31 UTC --- (In reply to comment #7) > (In reply to comment #6) > > — If E2 is a non-static data member and the type of E1 is “cq1 vq1 X”, and > > the > > type of E2 is “cq2 vq2 > > T”, the expres

[Bug c++/54293] When a reference is bound to subobject of a temporary, lifetime of the temporary is not extended

2012-08-20 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54293 --- Comment #7 from Daniel Krügler 2012-08-20 22:17:45 UTC --- (In reply to comment #6) > — If E2 is a non-static data member and the type of E1 is “cq1 vq1 X”, and the > type of E2 is “cq2 vq2 > T”, the expression designates the named member of

[Bug c++/54293] When a reference is bound to subobject of a temporary, lifetime of the temporary is not extended

2012-08-20 Thread jpalecek at web dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54293 --- Comment #6 from Jiří Paleček 2012-08-20 21:56:39 UTC --- (In reply to comment #5) > I think there is a compiler bug. The ruling text seems to be the > first bullet of 8.5.3/5 and its first sub-bullet: > > - If the reference is an lvalue

[Bug c++/54293] When a reference is bound to subobject of a temporary, lifetime of the temporary is not extended

2012-08-20 Thread crowl at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54293 crowl at gcc dot gnu.org changed: What|Removed |Added CC||crowl at gcc dot gnu.org --- Co

[Bug c++/54293] When a reference is bound to subobject of a temporary, lifetime of the temporary is not extended

2012-08-17 Thread jpalecek at web dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54293 Jiří Paleček changed: What|Removed |Added CC||jpalecek at web dot de --- Comment #4 from

[Bug c++/54293] When a reference is bound to subobject of a temporary, lifetime of the temporary is not extended

2012-08-17 Thread aaw at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54293 --- Comment #3 from Ollie Wild 2012-08-17 14:18:59 UTC --- No, this is a different failure. With my patch applied, the testcase still fails exactly as described.

[Bug c++/54293] When a reference is bound to subobject of a temporary, lifetime of the temporary is not extended

2012-08-16 Thread ppluzhnikov at google dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54293 Paul Pluzhnikov changed: What|Removed |Added CC||aaw at gcc dot gnu.org --- Comment #2 f

[Bug c++/54293] When a reference is bound to subobject of a temporary, lifetime of the temporary is not extended

2012-08-16 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54293 --- Comment #1 from Andrew Pinski 2012-08-16 23:02:07 UTC --- I think this is a dup of bug 54197 or at least related to it.