re PR c++/85014 (internal compiler error: in lookup_base, at cp/search.c:185)
authorPaolo Carlini <paolo@gcc.gnu.org>
Mon, 18 Mar 2019 09:38:27 +0000 (09:38 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 18 Mar 2019 09:38:27 +0000 (09:38 +0000)
commite6da0bf1f15cdb0d641b77af75b7cb511ef9b553
treec1e1a5e5d1027ca35f0cbbb2b6b32c48d0d91f68
parentf5d56cf957f9235d43f4dc4cec511b042e0b18de
re PR c++/85014 (internal compiler error: in lookup_base, at cp/search.c:185)

/cp
2019-03-18  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/85014
* semantics.c (finish_non_static_data_member): Check return value
of context_for_name_lookup and immediately return error_mark_node
if isn't a type.

/testsuite
2019-03-18  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/85014
* g++.dg/cpp0x/pr85014.C: New.

From-SVN: r269759
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr85014.C [new file with mode: 0644]