This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/60517] warning/error for taking address of member of a temporary object
- From: "glisse at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 22 Nov 2014 14:48:06 +0000
- Subject: [Bug c++/60517] warning/error for taking address of member of a temporary object
- Auto-submitted: auto-generated
- References: <bug-60517-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60517
--- Comment #18 from Marc Glisse <glisse at gcc dot gnu.org> ---
The .uninit dump for the original testcase now looks like:
double foo(A) (struct A a)
{
double SR.1;
<bb 2>:
return SR.1_2(D);
}
which the uninit pass would warn about, except that SR.1 is marked
TREE_NO_WARNING (possibly since the temporary created by the front-end). If
someone wants to look into that...