https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115913
Bug ID: 115913 Summary: ICE with pragma GCC pop_options (‘global_options’ are modified in local context) Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sjames at gcc dot gnu.org Target Milestone: --- Created attachment 58655 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58655&action=edit hb-subset.cc.ii.xz Hit this when bisecting via pragmas for PR115912. ``` $ gcc -c ./src/libharfbuzz-subset.so.0.60900.0.p/hb-subset.cc.ii ../src/hb-subset.cc:708:9: internal compiler error: ‘global_options’ are modified in local context 708 | #pragma GCC pop_options | ^~~ 0x56514e60db73 internal_error(char const*, ...) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/diagnostic-global-context.cc:491 0x56514d0b4545 cl_optimization_compare(gcc_options*, gcc_options*) /usr/src/debug/sys-devel/gcc-15.0.9999/build/gcc/options-save.cc:14248 0x56514f0ac0a4 handle_pragma_pop_options /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/c-family/c-pragma.cc:1284 0x56514f061f17 cp_lexer_handle_early_pragma /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:700 0x56514f061f17 cp_lexer_new_main /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:747 0x56514f061f17 c_parse_file() /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:51760 0x56514f03019b c_common_parse_file() /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/c-family/c-opts.cc:1315 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://bugs.gentoo.org/> for instructions. ```