]> gcc.gnu.org Git - gcc.git/commit
c++: start_preparsed_function tweak
authorJason Merrill <jason@redhat.com>
Tue, 21 Nov 2023 23:22:53 +0000 (18:22 -0500)
committerJason Merrill <jason@redhat.com>
Wed, 22 Nov 2023 03:37:44 +0000 (22:37 -0500)
commitf4c53580f3aba1343ca77756078722bb07f8118a
tree246aa8f10796b4f6349ac6c31063c9c9769b0a15
parent56ff988e6be3fdba70cad86d73ec0038bc3b6b5a
c++: start_preparsed_function tweak

In review of the deducing 'this' patch, it came up that the logic in
start_preparsed_function around the ctype variable was convoluted, being
set for non-static member functions and friends, but not for static member
functions.  Let's set it for any member function, and not rely on it to
decide whether to set up 'this'.

gcc/cp/ChangeLog:

* decl.cc (start_preparsed_function): Clarify ctype logic.
gcc/cp/decl.cc
This page took 0.057898 seconds and 5 git commands to generate.