]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
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)
/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

index a73d83bb0e0cf3a0820893a87623bc18b1d3b6cd..a1ebfc36c27ae698f43f7d18bba2f9d9780c99ee 100644 (file)
@@ -1,4 +1,10 @@
+2018-01-17  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/81054
+       * g++.dg/cpp0x/constexpr-ice19.C: New.
+
 2018-01-17  Will Schmidt  <will_schmidt@vnet.ibm.com>
+
        * gcc.target/powerpc/fold-vec-mergehl-char.c: New.
        * gcc.target/powerpc/fold-vec-mergehl-double.c: New.
        * gcc.target/powerpc/fold-vec-mergehl-float.c: New.