c++: add fixed testcase [PR99804]
commitfb28d5c6b0a47ab704290d0122f978d1e6346551
authorPatrick Palka <ppalka@redhat.com>
Wed, 25 Oct 2023 13:03:52 +0000 (25 09:03 -0400)
committerPatrick Palka <ppalka@redhat.com>
Wed, 25 Oct 2023 13:03:52 +0000 (25 09:03 -0400)
tree483db80fc898d266bbf79130673fd215dd0ecf74
parentac66744d94226a2763690dee2bfe4805b82bf90e
c++: add fixed testcase [PR99804]

We accept the non-dependent call f(e) here ever since the
NON_DEPENDENT_EXPR removal patch r14-4793-gdad311874ac3b3.
I haven't looked closely into why but I suspect wrapping 'e'
in a NON_DEPENDENT_EXPR was causing the argument conversion
to misbehave.

PR c++/99804

gcc/testsuite/ChangeLog:

* g++.dg/template/enum9.C: New test.
gcc/testsuite/g++.dg/template/enum9.C [new file with mode: 0644]