diff options
author | Jason Merrill <jason@redhat.com> | 2021-09-13 16:10:09 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2021-09-15 00:05:33 -0400 |
commit | ba9b07d0259b38a9eccd4eb0df327d3aaabad3c6 (patch) | |
tree | 00d88941e62751b3aecd839be7edce0e562172a7 /gcc/config.gcc | |
parent | f53a89fe722958d29fded71b444ff0f09b57b2c4 (diff) | |
download | gcc-ba9b07d0259b38a9eccd4eb0df327d3aaabad3c6.zip gcc-ba9b07d0259b38a9eccd4eb0df327d3aaabad3c6.tar.gz gcc-ba9b07d0259b38a9eccd4eb0df327d3aaabad3c6.tar.bz2 |
c++: correct object scope handling
The way cp_parser_lookup_name handles object scope (i.e. the scope on the
RHS of a . or -> expression) is a bit subtle: before the lookup it's in
parser->context->object type, and after the lookup it's in
parser->object_scope. But a couple of places that elide lookups were
failing to do the same transform.
I'm not aware of this breaking anything currently.
gcc/cp/ChangeLog:
* parser.c (cp_parser_template_name): Move object type.
(cp_parser_pre_parsed_nested_name_specifier): Likewise.
Diffstat (limited to 'gcc/config.gcc')
0 files changed, 0 insertions, 0 deletions