Closed aytey closed 2 years ago
Likely to be the same issue, but with "more interesting" error messages
gcc (SUSE Linux) 10.2.1 20201202 [revision e563687cf9d3d1278f45aaebd03e0f66531076c9]
clang version 11.0.1
gcc -Werror -Wall -Wextra -Wpedantic -pedantic -std=c11 -c $FNAME
(return code 0)
clang -Werror -Wall -Wextra -Wpedantic -pedantic -std=c11 -c $FNAME
(return code 0)
cnip $FNAME
v2.c:5:2 warning: missing type specifier, assume `int'
foo(®_stat, 0, __builtin_offsetof(struct reg_stat, sign_bit_copies));
^
v2.c:5:6 warning: missing type specifier, assume `int'
foo(®_stat, 0, __builtin_offsetof(struct reg_stat, sign_bit_copies));
^
v2.c:5:6 error: expected `)', got `&'
foo(®_stat, 0, __builtin_offsetof(struct reg_stat, sign_bit_copies));
^
(return code 0)
struct reg_stat {
char sign_bit_copies;
} reg_stat;
void *foo(void *, int, int);
void __attribute__init_reg_last() {
foo(®_stat, 0, __builtin_offsetof(struct reg_stat, sign_bit_copies));
}
psychec
versioncommit d10dc1ddfb7ea845f59274a4d6ca5d021ab31423
Author: Leandro T. C. Melo <LTCMELO@GMAIL.COM>
Date: Tue Mar 9 21:18:30 2021 -0300
fix postfixing on compound literal
Labeling as a C extension.
Fixed by #82
GCC version:
clang version:
Output of
gcc -Werror -Wall -Wextra -Wpedantic -pedantic -std=c11 -c $FNAME
Output of
clang -Werror -Wall -Wextra -Wpedantic -pedantic -std=c11 -c $FNAME
Output of
cnip $FNAME
Content of file
psychec
version