[Bug c++/126910] New: -gcodeview crash with boost::container on windows

"jeanmichael.celerier at gmail dot com via Gcc-bugs" <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126910

            Bug ID: 126910
           Summary: -gcodeview crash with boost::container on windows
           Product: gcc
           Version: 16.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jeanmichael.celerier at gmail dot com
  Target Milestone: ---

Repro, on today 2026-08-16 MSYS2 UCRT64 GCC and boost:

    // REPRO.cpp
    #include <boost/container/vector.hpp>
    void f() { boost::container::vector<int> v; (void)v; }

    $ g++ -gcodeview -c REPRO.cpp
    REPRO.cpp:2:54: internal compiler error: Segmentation fault


Adding -g1 fixes it. -freport-bug crashes on MSYS2 :(

Exact versions:

 - mingw-w64-ucrt-x86_64-gcc 16.2.0-3
 - mingw-w64-ucrt-x86_64-boost 1.91.0-3
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.