re PR c++/81054 (ICE with volatile variable in constexpr function)
authorPaolo Carlini <paolo@gcc.gnu.org>
Wed, 17 Jan 2018 20:29:25 +0000 (20:29 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 17 Jan 2018 20:29:25 +0000 (20:29 +0000)
commit8fca809b59757519517e67a23b6df005e9e452dd
tree0633cfe7d4bf3b2f5ea26dff195130d811d71900
parent9638f320ec3f396f57df753a70785a0390d40f3e
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: r256817
gcc/testsuite/ChangeLog