c++: tweak to (*(fn))() patch [PR104618]
commit03e0c807ef50684cc1d49144948aa409decb91f9
authorJason Merrill <jason@redhat.com>
Mon, 28 Feb 2022 16:05:34 +0000 (28 12:05 -0400)
committerJason Merrill <jason@redhat.com>
Mon, 7 Mar 2022 23:32:39 +0000 (7 18:32 -0500)
tree81484a22271c27b98e604b568b05cb1aa7329db5
parentb7dbe870bc0193c76345f893d94c5bf6c99a6afe
c++: tweak to (*(fn))() patch [PR104618]

Other callers of mark_single_function might also want to look through these
wrapapers.

PR c++/104618

gcc/cp/ChangeLog:

* decl2.cc (mark_single_function): Look through parens and location
wrapper.
* typeck.cc (cp_build_addr_expr_1): Not here.
gcc/cp/decl2.cc
gcc/cp/typeck.cc