https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101567
Bug ID: 101567 Summary: Gcc incorrectly allows co_await operator inside catch-block Product: gcc Version: 11.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: fchelnokov at gmail dot com Target Milestone: --- According to the standard "An await-expression shall appear only in a potentially-evaluated expression within the compound-statement of a function-body outside of a handler." https://timsong-cpp.github.io/cppwp/n4861/expr.await#2 But GCC currently allows co_await operator inside catch-block, which lead to very weird results: https://gcc.godbolt.org/z/4deoG7Pnh