[Bug c++/70301] missing diagnostic on taking the address of a temporary

2021-09-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70301 Andrew Pinski changed: What|Removed |Added Last reconfirmed|2016-03-19 00:00:00 |2021-9-28 --- Comment #3 from Andrew Pin

[Bug c++/70301] missing diagnostic on taking the address of a temporary

2016-03-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70301 --- Comment #2 from Martin Sebor --- Okay, here's a slightly less contrived test case: struct A { int a [1]; }; struct B { int b [2]; }; A foo (); B bar (); int *p = foo ().a; int *q = bar ().b; This test case should also illustr

[Bug c++/70301] missing diagnostic on taking the address of a temporary

2016-03-19 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70301 Marc Glisse changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|