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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|mpolacek at gcc dot gnu.org        |jakub at gcc dot gnu.org

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
It was actually r240449

            Implement P0138R2, C++17 construction rules for enum class values
            * cp-tree.h (is_direct_enum_init): Declare.
            * decl.c (is_direct_enum_init): New function.
            (reshape_init): Use it.
            * typeck.c (convert_for_assignment): Likewise.

            * g++.dg/cpp1z/direct-enum-init1.C: New test.

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