https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100380
--- Comment #2 from Antoni <bouanto at zoho dot com> --- Created attachment 50731 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50731&action=edit Working code So, the segfault seems to happen when creating the variable after creating the extended asm expression. Here's a working version of the code.