https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77754
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Perhaps doing it in grokdeclarator where build_function_type is called, if initialized == false? But it is unclear to me where all the side-effects can hide. E.g. int fn3(); void fn4(int (*)[fn3 ()][fn3 () + 1][fn3 () + 2], struct S { int a[fn3 ()]; } *); void fn1() { int a[10][fn3 ()][fn3 () + 1][fn3 () + 2]; fn4 (a, 0); } is accepted, so it can be even inside of non-array aggregate types.