comparison gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice13.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
8 } 8 }
9 9
10 void g() 10 void g()
11 { 11 {
12 typedef void (X) (); 12 typedef void (X) ();
13 X x[] = { [x](){} }; // { dg-error "array of functions|not declared" } 13 X x[] = { [x](){} }; // { dg-error "5:declaration of .x. as array of functions" }
14 // { dg-error "not declared" "" { target *-*-* } .-1 }
14 } 15 }