Closed zmajeed closed 3 months ago
The comment "SHOULD FAIL" in tests.t only apply for the test bitfield_declaration_ambiguity.fail.c
, but not for the test aligned_strut_c18.c
. This test does not fail, as dictated by the standard.
But you are right that the file is rejected by GCC. I consider this as a "semantic" error, and not as a syntax error, because the input file is correct with respect to the grammar of the standard (even if it is not when considering other rules in the standard). Anyway, I fixed the issue in c42449d5a.
Thanks for the quick turnaround - and for clarifying the SHOULD_FAIL
label in `tests.t
This is
tests/aligned_struct_c18.c
And how it's listed in
tests/tests.t
There are some issues with this test
_Alignas
tests/aligned_struct_c18.c:3:1: error: unnamed struct/union that defines no instances 3 | }; | ^
If that's the case then why would semantic analysis be needed for
_Alignas
to not be recognized inside a struct since the limitation was purely syntactical.