c++: Add fixed test [PR96474]
authorMarek Polacek <polacek@redhat.com>
Wed, 3 Mar 2021 20:10:21 +0000 (15:10 -0500)
committerMarek Polacek <polacek@redhat.com>
Wed, 3 Mar 2021 20:12:07 +0000 (15:12 -0500)
commit49df367b17995c54fabe5bca290eede7dfab05b3
treea6e3a1040613669cb7f04035152214a16f2ca729
parent499193a692efa33c9b2fe3ad8da0f4d5e5fd0e0c
c++: Add fixed test [PR96474]

Was happy to find out that my recent dguide fix (r11-7483) fixed
this test too.  In particular, the

+  /* Wait until the enclosing scope is non-dependent.  */
+  if (DECL_CLASS_SCOPE_P (tmpl)
+      && dependent_type_p (DECL_CONTEXT (tmpl)))
+    return ptype;

bit.

gcc/testsuite/ChangeLog:

PR c++/96474
* g++.dg/cpp1z/class-deduction83.C: New test.
gcc/testsuite/g++.dg/cpp1z/class-deduction83.C [new file with mode: 0644]