PR c++/77626
commita48667eeded4be76c6d21f6dab96b76d8a59cbee
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Sep 2016 15:18:31 +0000 (20 15:18 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Sep 2016 15:18:31 +0000 (20 15:18 +0000)
treefd9076cf102a3e661a70dbfcb096f70b77105ada
parent7e67c6d51b941c254c74b3dfb7e6ffbf0f274b8c
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.

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