SerenityOS / serenity

The Serenity Operating System 🐞
https://serenityos.org
BSD 2-Clause "Simplified" License
29.64k stars 3.15k forks source link

AK: Report coroutine-related bugs to GCC #24630

Open DanShaders opened 6 days ago

DanShaders commented 6 days ago

AK/Platform.h defines AK_COROUTINE_STATEMENT_EXPRS_BROKEN and AK_COROUTINE_TYPE_DEDUCTION_BROKEN if it detects GCC. These macros instruct AK/Coroutine.h & co. to work around specific compiler bugs. The bugs are not reported and this is not good (TM).

Obtaining reproducers is as easy as commenting out one of the defines and trying to run Lagom tests.