Tested x86_64-pc-linux-gnu, applying to trunk. -- >8 -- Fixed by r13-6693.
PR c++/109095 gcc/testsuite/ChangeLog: * g++.dg/cpp2a/nontype-class66.C: New test. --- gcc/testsuite/g++.dg/cpp2a/nontype-class66.C | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp2a/nontype-class66.C diff --git a/gcc/testsuite/g++.dg/cpp2a/nontype-class66.C b/gcc/testsuite/g++.dg/cpp2a/nontype-class66.C new file mode 100644 index 00000000000..385b290521f --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp2a/nontype-class66.C @@ -0,0 +1,19 @@ +// PR c++/109095 +// { dg-do compile { target c++20 } } + +template< typename T > +struct bar +{}; + +template< int X > +struct baz +{}; + +template< auto N, template< auto N2 > typename TT > +struct foo; + +template< typename T, bar< T > B, template< T N2 > typename TT > +struct foo< B, TT > +{}; + +foo< bar< int >{}, baz > x; base-commit: f0ab3de6ec0e3540f2e57f3f5628005f0a4e3fa5 -- 2.46.0