Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/concepts/diagnostic10.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++/67825 // { dg-do compile { target concepts } } // { dg-additional-options "-fconcepts-diagnostics-depth=2" } template<typename T> requires requires (T t) { t.f; } // { dg-error "invalid use of non-static member function" } void foo() { } struct S { int f(); }; void bar() { foo<S>(); // { dg-error "unsatisfied constraints" } }