[Bug c++/85515] Bogus suggestions from "GCC's leaky abstractions"
dmalcolm at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 14 22:58:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85515
--- Comment #7 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Author: dmalcolm
Date: Thu Feb 14 22:57:34 2019
New Revision: 268908
URL: https://gcc.gnu.org/viewcvs?rev=268908&root=gcc&view=rev
Log:
Don't offer suggestions for compiler-generated variables (PR c++/85515)
gcc/cp/ChangeLog:
Backport of r259720 from trunk.
2018-04-27 David Malcolm <dmalcolm@redhat.com>
PR c++/85515
* name-lookup.c (consider_binding_level): Skip compiler-generated
variables.
* search.c (lookup_field_fuzzy_info::fuzzy_lookup_field): Flatten
nested if statements into a series of rejection tests. Reject
lambda-ignored entities as suggestions.
gcc/testsuite/ChangeLog:
Backport of r259720 from trunk.
2018-04-27 David Malcolm <dmalcolm@redhat.com>
PR c++/85515
* g++.dg/pr85515-1.C: New test.
* g++.dg/pr85515-2.C: New test.
Added:
branches/gcc-8-branch/gcc/testsuite/g++.dg/pr85515-1.C
branches/gcc-8-branch/gcc/testsuite/g++.dg/pr85515-2.C
Modified:
branches/gcc-8-branch/gcc/cp/ChangeLog
branches/gcc-8-branch/gcc/cp/name-lookup.c
branches/gcc-8-branch/gcc/cp/search.c
branches/gcc-8-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list