Skip to content

ci: add -std=c99 to vtest-all.v to fix GCC 15 / C23 bool conflict#26452

Merged
spytheman merged 1 commit into
vlang:masterfrom
demizer:fix-gcc15-bool-typedef
Jan 26, 2026
Merged

ci: add -std=c99 to vtest-all.v to fix GCC 15 / C23 bool conflict#26452
spytheman merged 1 commit into
vlang:masterfrom
demizer:fix-gcc15-bool-typedef

Conversation

@demizer

@demizer demizer commented Jan 26, 2026

Copy link
Copy Markdown

GCC 15 defaults to C23, where bool, true, and false are keywords. This conflicts with V's typedef u8 bool in cheaders.v.

Adding -std=c99 to the cc command ensures the generated v.c compiles without warnings on systems with GCC 15+.

ref #25805

GCC 15 defaults to C23, where `bool`, `true`, and `false` are keywords.
This conflicts with V's `typedef u8 bool` in cheaders.v.

Adding `-std=c99` to the cc command ensures the generated v.c compiles
without warnings on systems with GCC 15+.

ref vlang#25805
@demizer demizer force-pushed the fix-gcc15-bool-typedef branch from 7ef9e69 to 2a6c3d0 Compare January 26, 2026 22:55

@spytheman spytheman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @demizer 🙇🏻 .

@spytheman spytheman merged commit 429800c into vlang:master Jan 26, 2026
28 of 29 checks passed
@demizer demizer deleted the fix-gcc15-bool-typedef branch January 27, 2026 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants