]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: is_this_parameter and coroutines proxies
authorJason Merrill <jason@redhat.com>
Sat, 13 Nov 2021 22:16:46 +0000 (17:16 -0500)
committerJason Merrill <jason@redhat.com>
Mon, 15 Nov 2021 07:50:26 +0000 (02:50 -0500)
commitdaa9c6b015a33fa98af0ee7cd6919120248ab5f9
treeff24bf6d4772cddc497f14db9f6d2001939b3b75
parentbd95d75f3412e1a7debab7c6c602ba409f274eb5
c++: is_this_parameter and coroutines proxies

Compiling coroutines/pr95736.C with the implicit constexpr patch broke
because is_this_parameter didn't recognize the coroutines proxy for 'this'.

gcc/cp/ChangeLog:

* semantics.c (is_this_parameter): Check DECL_HAS_VALUE_EXPR_P
instead of is_capture_proxy.
gcc/cp/semantics.c