re PR c++/81054 (ICE with volatile variable in constexpr function)
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 17 Jan 2018 20:28:47 +0000 (20:28 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 17 Jan 2018 20:28:47 +0000 (20:28 +0000)
commit9638f320ec3f396f57df753a70785a0390d40f3e
treeed0135709c9dceaaf7b59ef3148f972459c12f4f
parent95f94b38bbc1f65ddb5287b8fe1e357bfba36aef
re PR c++/81054 (ICE with volatile variable in constexpr function)

/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.

From-SVN: r256816
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/cp/decl.c
gcc/testsuite/g++.dg/cpp0x/constexpr-ice19.C [new file with mode: 0644]