You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Give an error message if function parameter is declared twice #1849
Clang gives the following error message on the generated code:
/Users/ondrej/repos/gsi/copperhead/benchmarks/matmul/build/mat_vec-host-generated.c:224:52: error: redefinition of parameter 'm'void init_X(int32_t m, int32_t n, void* b, int32_t m) ^/Users/ondrej/repos/gsi/copperhead/benchmarks/matmul/build/mat_vec-host-generated.c:224:21: note: previous declaration is herevoid init_X(int32_t m, int32_t n, void* b, int32_t m) ^
We should give a similar error message, underlying both declarations of m.
Activity