AK: Make workaround for broken coroutine type deduction more specific

This bug was fixed on GCC trunk.
This commit is contained in:
Dan Klishch 2024-08-25 20:25:28 -04:00 committed by Daniel Bertalan
parent ba21a17b75
commit 3ead8e8f4f

View file

@ -165,7 +165,10 @@
#ifdef AK_COMPILER_GCC
// FIXME: Undefine once https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115851 is fixed.
# define AK_COROUTINE_STATEMENT_EXPRS_BROKEN
// FIXME: Undefine once https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112341 is fixed.
#endif
#if defined(AK_COMPILER_GCC) && __GNUC__ < 15
// Workaround for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112341 . See AK/Coroutine.h for more details.
# define AK_COROUTINE_TYPE_DEDUCTION_BROKEN
#endif