[Bug c++/81054] [7/8 Regression] ICE with volatile variable in constexpr function

paolo at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jan 17 20:29:00 GMT 2018


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

--- Comment #4 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Wed Jan 17 20:28:47 2018
New Revision: 256816

URL: https://gcc.gnu.org/viewcvs?rev=256816&root=gcc&view=rev
Log:
/cp
2018-01-17  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/81054
        * constexpr.c (ensure_literal_type_for_constexpr_object): Return
        error_mark_node when we give an error.
        * decl.c (cp_finish_decl): Use the latter.

/testsuite
2018-01-17  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/81054
        * g++.dg/cpp0x/constexpr-ice19.C: New.

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


More information about the Gcc-bugs mailing list