Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/concepts/diagnostic6.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
line wrap: on
line source
// { dg-do compile { target c++2a } } template<typename T> concept C = requires (T t) { t + 0; }; // { dg-message "satisfaction of .C<T>. .with T = typename T::type." "" { target *-*-* } .-1 } template<typename T> concept D = C<T>; // { dg-message "satisfaction of .D<typename T::type>. .with T = int." "" { target *-*-* } .-1 } template<typename T> concept E = D<typename T::type>; static_assert(E<int>); // { dg-error "static assertion failed|not a class" }