/cp
commite89257dbeb03f0a921f0dadb7764e29358274d0e
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Jan 2018 20:28:47 +0000 (17 20:28 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Jan 2018 20:28:47 +0000 (17 20:28 +0000)
treeed0135709c9dceaaf7b59ef3148f972459c12f4f
parentdae0186169760317cc34dddc1205f5ae9449bf8e
/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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@256816 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/cp/decl.c
gcc/testsuite/g++.dg/cpp0x/constexpr-ice19.C [new file with mode: 0644]