diff options
author | Jason Merrill <jason@redhat.com> | 2019-12-18 07:44:34 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2019-12-18 07:44:34 -0500 |
commit | 1ad431f95c200fe4d1eccab9cd5487087adc2bd8 (patch) | |
tree | a43658ed7be8f865ba478101168b95d555962029 /gcc/tree-ssa-ccp.c | |
parent | 542803c9adea448854477e0a544455cffda7cd51 (diff) | |
download | gcc-1ad431f95c200fe4d1eccab9cd5487087adc2bd8.zip gcc-1ad431f95c200fe4d1eccab9cd5487087adc2bd8.tar.gz gcc-1ad431f95c200fe4d1eccab9cd5487087adc2bd8.tar.bz2 |
PR c++/12333 - X::~X() with implicit this->.
this->X::~X() is handled by finish_class_member_access_expr and its
lookup_destructor subroutine; let's use it in cp_parser_lookup_name for the
case where this-> is implicit.
I tried replacing the other destructor code here with just the call to
lookup_destructor, but that regressed handling of naming the destructor
outside a non-static member function.
* parser.c (cp_parser_lookup_name): Use lookup_destructor.
* typeck.c (lookup_destructor): No longer static.
From-SVN: r279522
Diffstat (limited to 'gcc/tree-ssa-ccp.c')
0 files changed, 0 insertions, 0 deletions