Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/cpp2a/concepts-lambda7.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
line wrap: on
line source
// PR c++/95020 // { dg-do compile { target c++2a } } template<typename> void foo() { auto t = [](auto v) { static_assert(requires { *v; }); // { dg-error "static assertion failed" } }; t(0); } void bar() { foo<void>(); }