Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/cpp2a/nontype-class24.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
// PR c++/92150 // { dg-do compile { target c++2a } } struct X { int value; // auto operator==(const X&) = default; }; template<typename T, X N> struct b; template<typename T> inline constexpr bool is_b = false; template<typename T, X N> inline constexpr bool is_b<b<T, N>> = true; using my_b = b<int, X{1}>; static_assert(is_b<my_b>);