c++: Add new test [PR88819]

Fixed by r10-1975-g59febe0ece37bedab7f42ae51b9f2b7a372d2950.

2020-02-12  Marek Polacek  <polacek@redhat.com>

	PR c++/88819
	* g++.dg/cpp2a/nontype-class32.C: New test.
This commit is contained in:
Marek Polacek 2020-02-12 11:20:07 -05:00
parent e428a9cf85
commit 54947e4db0
2 changed files with 15 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2020-02-12 Marek Polacek <polacek@redhat.com>
PR c++/88819
* g++.dg/cpp2a/nontype-class32.C: New test.
2020-02-12 Marek Polacek <polacek@redhat.com>
PR c++/93684 - ICE-on-invalid with broken attribute.

View file

@ -0,0 +1,10 @@
// PR c++/88819
// { dg-do compile { target c++2a } }
template<typename T, template<T> class TT, class R = TT <0>> struct A
{
template<R> struct B {};
};
template<int> struct C {};
A<int, C, C<0>> a;