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

Reply via email to