c++: Fix non-portable default argument of make_auto_1 [PR104197]
authorPatrick Palka <ppalka@redhat.com>
Mon, 24 Jan 2022 16:47:13 +0000 (11:47 -0500)
committerPatrick Palka <ppalka@redhat.com>
Mon, 24 Jan 2022 16:47:13 +0000 (11:47 -0500)
commitb1aa2a3cf1ba233ccd5a49fde85a2ca7e5f620e9
treedac41103080fcdb4277a7d9263981ea00dec0b9f
parent2a908f3da07c9e94b8a19e966b45daf0140107e8
c++: Fix non-portable default argument of make_auto_1 [PR104197]

Avoid using the macro current_template_depth, which expands to an
expression that uses __FUNCTION__, within the signature of a function.

PR c++/104197

gcc/cp/ChangeLog:

* pt.cc (make_auto_1): Use -1 as a placeholder default argument
for level.
gcc/cp/pt.cc