Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/concepts/diagnostic6.C @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 2b5abeee2509 |
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" }