This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[C++ Patch] Fix PR 35112


Hi,

in this case the issue is slightly less simple than some other small
patches I prepared lately. The PR is about a problem while printing the
set of candidates for an ambiguous lookup, which I tracked down to
print_candidates no dealing correctly with TREE_VALUE of the argument as
TREE_LIST. Having fixed that, I noticed that the now correct diagnostics
was emitted twice, that was evidently a pre-existing problem along this
code path. Indeed parse/error17.C showed exactly the same problem; also
template/dtor7.C had some dg-bogus. Thus I figured out that apparently
in cp_parser_class_name we were emitting a second time the diagnostics
already emitted inside cp_parser_lookup_name and tried to clean-up that,
that is the work done right after the latter call.

Patch tested x86_64-linux. Is it ok?

Thanks,
Paolo.

////////////////////////

Attachment: CL_35112
Description: Text document

Attachment: patch_35112
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]