PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / concepts / locations1.C
blob6e7529b0ee1a9d22047bb5bef9d047643216393e
1 // { dg-additional-options "-std=c++17 -fconcepts" }
3 struct S
5   concept S();  // { dg-error "3:a constructor cannot be .concept." }
6   concept int s = 1;  // { dg-error "3:non-static data member .s. declared .concept." }
7   concept void foo();  // { dg-error "3:a concept cannot be a member function" }
8   concept ~S();  // { dg-error "3:a destructor cannot be .concept." }
9 };
11 typedef concept int my_int;  // { dg-error "9:.concept. cannot appear in a typedef declaration" }
13 void bar(concept int);  // { dg-error "10:a parameter cannot be declared .concept." }
15 concept int i = 0;  // { dg-error "1:a non-template variable cannot be .concept." }