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