c++: (*(fn))() [PR104618]
commit0096b0b467b2c98ed258f0ead9a8b87b2a6d8466
authorJason Merrill <jason@redhat.com>
Fri, 25 Feb 2022 19:26:17 +0000 (25 15:26 -0400)
committerJason Merrill <jason@redhat.com>
Sun, 27 Feb 2022 22:51:37 +0000 (27 18:51 -0400)
treee5796704a0e4e99193398523fa68e6d96a4a559a
parentd1574a9b820f17adb9004255e2018967e9be063b
c++: (*(fn))() [PR104618]

The patch for PR90451 deferred marking to the point of actual use; we missed
this one because of the parens.

PR c++/104618

gcc/cp/ChangeLog:

* typeck.cc (cp_build_addr_expr_1): Also
maybe_undo_parenthesized_ref.

gcc/testsuite/ChangeLog:

* g++.dg/overload/paren1.C: New test.
gcc/cp/typeck.cc
gcc/testsuite/g++.dg/overload/paren1.C [new file with mode: 0644]