This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/60517] warning/error for taking address of member of a temporary object


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...


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]