re PR c++/77626 (ICE with -Wall on x86_64-linux-gnu (internal compiler error: Segment...
authorJakub Jelinek <jakub@redhat.com>
Tue, 20 Sep 2016 15:18:31 +0000 (17:18 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 20 Sep 2016 15:18:31 +0000 (17:18 +0200)
commitb912f962e2d8bfec7f633500e9a50fdddf867196
treefd9076cf102a3e661a70dbfcb096f70b77105ada
parenteaf1ece1315e4fc7356e9fb24e07c4bd86c73f14
re PR c++/77626 (ICE with -Wall on x86_64-linux-gnu (internal compiler error: Segmentation fault, byte_from_pos, cxx_fold_indirect_ref))

PR c++/77626
* constexpr.c (cxx_fold_indirect_ref): Don't call byte_position on
FIELD_DECLs with error_mark_node type.  Remove useless break; after
return.

* g++.dg/other/pr77626.C: New test.

From-SVN: r240267
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/pr77626.C [new file with mode: 0644]