typeck2.c (build_x_arrow): Early return if decay_conversion returns error_mark_node.
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 20 Nov 2019 21:03:05 +0000 (21:03 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 20 Nov 2019 21:03:05 +0000 (21:03 +0000)
commitdf2653441a24175e1c909a1234413730c10535e4
tree5a35fa03538513cde8892f264071f00064949d8a
parentc013852d6138f35314ea14f5772f57a975064d4d
typeck2.c (build_x_arrow): Early return if decay_conversion returns error_mark_node.

/gcc
2019-11-20  Paolo Carlini  <paolo.carlini@oracle.com>

* typeck2.c (build_x_arrow): Early return if decay_conversion
returns error_mark_node.

/testsuite
2019-11-20  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/parse/error43.C: Adjust expected error.

From-SVN: r278530
gcc/cp/ChangeLog
gcc/cp/typeck2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/error43.C