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++/81054] [7/8 Regression] ICE with volatile variable in constexpr function


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

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