https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106773
--- Comment #4 from David Faust <david.faust at oracle dot com> --- Created attachment 53993 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53993&action=edit proposed patch Should fix the remaining issues with 'extern' linkage and the missing 'const' modifier (and includes the earlier partial fixes in this bug)