https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108833

            Bug ID: 108833
           Summary: internal compiler error: Segmentation fault (GCC
                    12.1.1)
           Product: gcc
           Version: 12.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: liavonlida at gmail dot com
  Target Milestone: ---

Created attachment 54480
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54480&action=edit
I tried to make the sample minimal.

Compilation fails with Segmentation fault.


<source>:250:8: internal compiler error: Segmentation fault
  250 |   s >> range;
      |        ^~~~~
0x1bb069e internal_error(char const*, ...)
        ???:0
0x87ce73 instantiate_decl(tree_node*, bool, bool)
        ???:0
0x898f3b instantiate_pending_templates(int)
        ???:0
0x7a4928 c_parse_final_cleanups()
        ???:0


I checked other versions at godbolt.org:

gcc 12.1.0          -> ok
gcc 12.1.1          -> fail      <<- my case with gcc-toolset-12 on Rocky Linux
8.7
gcc 12.2.0          -> fail
gcc trunk(13.0.1)   -> ok

Minimal code is attached

Reply via email to