https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122008
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |ebotcazou at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #2 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
It's a plain stack overflow (STORAGE_ERROR) because prot_type is mutable and
therefore allocated with the maximum size on the stack. Remove the default
value for the discriminant or change the index type to something smaller.