re PR c++/79825 (Uninitialized uses in aggregate copies of empty structs (missed...
authorRichard Biener <rguenther@suse.de>
Fri, 3 Mar 2017 11:30:32 +0000 (11:30 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 3 Mar 2017 11:30:32 +0000 (11:30 +0000)
commit30d309aaf14343dc0e9f00c9cf37075afdfba905
treed0b6d6c4ff3fbb2224944760ac5c1b3cf5a6f9f1
parent38801de50fdae55232d402838e1fb56842ca6582
re PR c++/79825 (Uninitialized uses in aggregate copies of empty structs (missed DCE in C++ gimplify))

2017-03-03  Richard Biener  <rguenther@suse.de>

PR c++/79825
* cp-gimplify.c (simple_empty_class_p): Handle EMPTY_CLASS_EXPR.

* g++.dg/warn/Wuninitialized-8.C: New testcase.

From-SVN: r245866
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wuninitialized-8.C [new file with mode: 0644]