https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98025
Bug ID: 98025
Summary: [11 Regression][CET] libphobos: dub segfaults when
built with gdc 11
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: d
Assignee: ibuclaw at gdcproject dot org
Reporter: ibuclaw at gdcproject dot org
Target Milestone: ---
Following on from pr95680, the layout of the Fiber class changes when libphobos
is built with -fversion=CET. This breaks user code that implement their own
fibers based off core.thread unless they also compile with -fversion=CET as
well.
So when libphobos is compiled with --enable-cet, this needs to be also recorded
in gcc.config to persist in the ABI. Not just as an internal implementation
detail.