[Bug c++/82299] -Wuseless-cast errors on typed enums used in member data initializers in c++1z
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Oct 6 18:01:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82299
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Oct 6 18:00:54 2017
New Revision: 253499
URL: https://gcc.gnu.org/viewcvs?rev=253499&root=gcc&view=rev
Log:
PR c++/82299
* decl.c (reshape_init): Suppress warn_useless_cast for direct enum
init.
* typeck.c (convert_for_assignment): Likewise.
* g++.dg/cpp0x/pr82299.C: New test.
Added:
branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp0x/pr82299.C
Modified:
branches/gcc-7-branch/gcc/cp/ChangeLog
branches/gcc-7-branch/gcc/cp/decl.c
branches/gcc-7-branch/gcc/cp/typeck.c
branches/gcc-7-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list