Skip to content

Workaround a GCC+modules bug triggered by the enum recipe#136

Merged
rbock merged 2 commits into
rbock:mainfrom
MeanSquaredError:fix_recipe_enum
Jun 24, 2026
Merged

Workaround a GCC+modules bug triggered by the enum recipe#136
rbock merged 2 commits into
rbock:mainfrom
MeanSquaredError:fix_recipe_enum

Conversation

@MeanSquaredError

@MeanSquaredError MeanSquaredError commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

The enum recipe, which I added recently, triggers a GCC bug when compiled with modules. This PR adds a workaround for the GCC bug (I added a comment with a link to the bug in the GCC bug tracker).

I also removed the call to std::ranges::sort() in the enums recipe. I thought that I removed it during the review of the enums recipe, but somehow it managed to survive. Now it should be gone.

On a side note: There is also another unrelated issue which prevents building the sqlpp23 tests with GCC 16.1.1 and modules enabled. It seems to be unrelated to the enums recipe and it looks like it is related to the core and/or MockDb. I will investigate it further and will provide a fix for it in a separate PR.

@rbock

rbock commented Jun 24, 2026

Copy link
Copy Markdown
Owner

This include / import order stuff is a bit of a pain. Thanks for fixing!

@rbock rbock merged commit e4f47a8 into rbock:main Jun 24, 2026
1 check passed
@MeanSquaredError

Copy link
Copy Markdown
Contributor Author

Well yes, playing the include-reordering game does become tedious at times :-)
Almost all of the include issues with GCC are caused by GCC bug 99000. Once the GCC devs fix it, all that trickery with the reordering should become unnecessary.

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