[Bug c++/82461] [7 Regression] Temporary required for brace-initializing (non-literal-type) member variable

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jan 29 20:59:00 GMT 2018


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

--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Jan 29 20:58:36 2018
New Revision: 257164

URL: https://gcc.gnu.org/viewcvs?rev=257164&root=gcc&view=rev
Log:
        PR c++/82461 - constexpr list-initialized member

        * constexpr.c (potential_constant_expression_1): Check
        TARGET_EXPR_DIRECT_INIT_P.

Added:
    branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-list2.C
Modified:
    branches/gcc-7-branch/gcc/cp/ChangeLog
    branches/gcc-7-branch/gcc/cp/constexpr.c


More information about the Gcc-bugs mailing list