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