File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1+ // RUN: %clang_cc1 -std=c++20 -verify %s
2+
3+ namespace P1972 {
4+ void f (int ) requires false; // expected-note 4{{because 'false' evaluated to false}} \
5+ // expected-note{{constraints not satisfied}}
6+ void g () {
7+ f (0 ); // expected-error{{no matching function for call to 'f'}}
8+ void (*p1)(int ) = f; // expected-error{{invalid reference to function 'f': constraints not satisfied}}
9+ void (*p21)(int ) = &f; // expected-error{{invalid reference to function 'f': constraints not satisfied}}
10+ decltype (f) *p2 = nullptr ; // expected-error{{invalid reference to function 'f': constraints not satisfied}}
11+ }
12+ }
Original file line number Diff line number Diff line change @@ -938,7 +938,7 @@ <h2 id="cxx20">C++20 implementation status</h2>
938938 </ tr >
939939 < tr > <!-- from Belfast -->
940940 < td > < a href ="https://wg21.link/p1972r0 "> P1972R0</ a > </ td >
941- < td rowspan ="4 " class ="none " align ="center "> No </ td >
941+ < td rowspan ="4 " class ="full " align ="center "> Clang 10 </ td >
942942 </ tr >
943943 < tr >
944944 < td > < a href ="https://wg21.link/p1980r0 "> P1980R0</ a > </ td >
You can’t perform that action at this time.
0 commit comments