[Bug c++/70205] [4.9/5/6 Regression] ICE on valid code on x86_64-linux-gnu: tree check: expected tree_binfo, have error_mark in add_candidates, at cp/call.c:5283
ppalka at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 18 01:27:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70205
--- Comment #10 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Author: ppalka
Date: Fri Mar 18 01:26:50 2016
New Revision: 234317
URL: https://gcc.gnu.org/viewcvs?rev=234317&root=gcc&view=rev
Log:
Fix PR c++/70205 (ICE on valid call to qualified static member function)
gcc/cp/ChangeLog:
PR c++/70205
* search.c (adjust_result_of_qualified_name_lookup): Don't
update the BASELINK_BINFO of DECL if the second call
to lookup_base fails.
gcc/testsuite/ChangeLog:
PR c++/70205
* g++.dg/lookup/pr70205.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/lookup/pr70205.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/search.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list