re PR c++/85258 (ICE with invalid range-based for-loop)
authorMarek Polacek <polacek@redhat.com>
Thu, 12 Apr 2018 20:02:47 +0000 (20:02 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 12 Apr 2018 20:02:47 +0000 (20:02 +0000)
commit4930c53ee69f18a6fd689527864d419ce0333e7a
tree2ce0c031a7622545758ae62e0e2977a0ff82f60a
parented086e7e0a9f56c0e6f20236fb3cf2c64c4b4b71
re PR c++/85258 (ICE with invalid range-based for-loop)

PR c++/85258
* constexpr.c (reduced_constant_expression_p): Return false for null
trees.

* g++.dg/parse/error61.C: New test.

From-SVN: r259355
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/error61.C [new file with mode: 0644]