[Bug c++/80119] [6/7 Regression] -Wmaybe-uninitialized wrongly flags the body of a short-circuited if-clause
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 24 14:22:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80119
--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Fri Mar 24 14:22:01 2017
New Revision: 246461
URL: https://gcc.gnu.org/viewcvs?rev=246461&root=gcc&view=rev
Log:
PR c++/80119
* cp-gimplify.c (cp_fold): Strip CLEANUP_POINT_EXPR if the expression
doesn't have side effects.
* g++.dg/warn/Wuninitialized-9.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/warn/Wuninitialized-9.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-gimplify.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list