This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/82299] -Wuseless-cast errors on typed enums used in member data initializers in c++1z


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]