public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/115913] New: ICE with pragma GCC pop_options (‘global_options’ are modified in local context)
@ 2024-07-14  2:14 sjames at gcc dot gnu.org
  2024-07-14  2:15 ` [Bug c++/115913] " sjames at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: sjames at gcc dot gnu.org @ 2024-07-14  2:14 UTC (permalink / raw)
  To: gcc-bugs

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.
```

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-07-19 13:26 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-14  2:14 [Bug c++/115913] New: ICE with pragma GCC pop_options (‘global_options’ are modified in local context) sjames at gcc dot gnu.org
2024-07-14  2:15 ` [Bug c++/115913] " sjames at gcc dot gnu.org
2024-07-14  2:18 ` sjames at gcc dot gnu.org
2024-07-14  2:26 ` [Bug middle-end/115913] " pinskia at gcc dot gnu.org
2024-07-14  3:50 ` pinskia at gcc dot gnu.org
2024-07-14  3:54 ` [Bug middle-end/115913] [11/12/13/14/15 Regression] ICE with pragma GCC pop_options with diagnostic pinskia at gcc dot gnu.org
2024-07-14  3:54 ` pinskia at gcc dot gnu.org
2024-07-15  8:34 ` rguenth at gcc dot gnu.org
2024-07-18 21:47 ` [Bug middle-end/115913] [11/12/13/14/15 Regression] ICE with pragma GCC pop_options with diagnostic since r11-1141 lhyatt at gcc dot gnu.org
2024-07-18 21:56 ` pinskia at gcc dot gnu.org
2024-07-18 22:07 ` lhyatt at gcc dot gnu.org
2024-07-19 13:26 ` [Bug middle-end/115913] [12/13/14/15 " rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).