[Bug c++/64644] "warning: anonymous union with no members" should be an error with -pedantic-errors
paolo at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Sep 15 19:23:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64644
--- Comment #5 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Fri Sep 15 19:22:35 2017
New Revision: 252835
URL: https://gcc.gnu.org/viewcvs?rev=252835&root=gcc&view=rev
Log:
/cp
2017-09-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
Paolo Carlini <paolo.carlini@oracle.com>
PR c++/64644
* decl2.c (finish_anon_union): Complain about "anonymous union with
no members" with a pedwarn.
/testsuite
2017-09-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
Paolo Carlini <paolo.carlini@oracle.com>
PR c++/64644
* g++.dg/other/anon-union4.C: New.
* g++.old-deja/g++.law/union4.C: Adjust.
* g++.old-deja/g++.other/anon1.C: Likewise.
Added:
trunk/gcc/testsuite/g++.dg/other/anon-union4.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl2.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.old-deja/g++.law/union4.C
trunk/gcc/testsuite/g++.old-deja/g++.other/anon1.C
More information about the Gcc-bugs
mailing list