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

            Bug ID: 125740
           Summary: Segfault importing header unit
                    (boost/parser/parser.hpp)
           Product: gcc
           Version: 16.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rainerd at eldwood dot com
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu
             Build: x86_64-pc-linux-gnu

Created attachment 64708
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=64708&action=edit
gcc stack trace and preprocessed header file

I have encountered a header file in the wild (that file being
boost/parser/parser.hpp) that compiles as a header unit without error message,
but causes a segfault when imported as a header unit.  The preprocessed header
file is rather long; the C++ source file that imports it is literally just a
single import statement.  I have attached the stack trace from gcc, the
preprocessed header file, and the C++ that demonstrates the problem.

Reply via email to