This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/82299] -Wuseless-cast errors on typed enums used in member data initializers in c++1z
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 06 Oct 2017 18:01:25 +0000
- Subject: [Bug c++/82299] -Wuseless-cast errors on typed enums used in member data initializers in c++1z
- Auto-submitted: auto-generated
- References: <bug-82299-4@http.gcc.gnu.org/bugzilla/>
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