| 1 |
// PR c++/84551 |
| 2 |
// { dg-do compile { target c++20 } } |
| 3 |
// { dg-additional-options "-g -O" } |
| 4 |
|
| 5 |
template<typename> concept C = true; |
| 6 |
|
| 7 |
template<template<typename T> requires C<T> class TT> struct A {}; |
| 8 |
|
| 9 |
template<typename U> requires true struct B {}; |
| 10 |
|
| 11 |
A<B> a; // { dg-error "" } |