[Bug c++/79118] [7 Regression] internal compiler error: in cxx_eval_bit_field_ref, at cp/constexpr.c:2258

nathan at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 24 19:26:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79118

--- Comment #10 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Author: nathan
Date: Tue Jan 24 19:25:32 2017
New Revision: 244881

URL: https://gcc.gnu.org/viewcvs?rev=244881&root=gcc&view=rev
Log:
        PR c++/79118 - anon-members and constexpr
        * constexpr.c (cx_check_missing_mem_inits): Caller passes type not
        ctor decl.  Recursively check anonymous members.
        (register_constexpr_fundef): Adjust cx_check_missing_mem_inits
        call.
        (explain_invalid_constexpr_fn): Likewise.


        PR c++/79118
        * g++.dg/cpp0x/pr79118.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/pr79118.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/constexpr.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list