Problem is for pointer of form double (*p)[n][5]; where n is a runtime parameter. Test case attached. $ gcc -Wall -std=c99 vla-bug.c && ./a.out test_static: size 15 diff 15 test_var: size 15 diff 15 $ clang -Wall -std=c99 vla-bug.c && ./a.out test_static: size 15 diff 15 test_var: size 15 diff 75
Created attachment 5748 [details] Test case looks like this didn't go through with the initial submission
Fixed at r118468.