Closed michaelforney closed 6 months ago
Hello! Thanks for this report. To me, it seems preferable to avoid the warning, indeed. I will let Jacques-Henri, who is currently on leave, reply once he comes back.
Thanks, well spotted. This is fixed in 7560d4f.
I noticed that
function-decls.c
contains the following line:Unless I'm mistaken, the typename
void (*(int arga, void (*argb)(double Y)))(void* Z)
specifies a function type with arguments int and pointer to function with argument double returning void, returning pointer to function with argument pointer to void returning void.This is a function type, but C17 6.5.3.4p1 says (in the constraints section)
gcc correctly produces a warning when compiling with
-Wpedantic
:I know these tests are mainly about syntax, but since the repository states that these are all valid C18 fragments, I think the test should be tweaked to avoid the constraint error.