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

            Bug ID: 101638
           Summary: ICE with -Wtraditional
           Product: gcc
           Version: 11.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: preprocessor
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

With recent glibc head includes

> cat t.c
#include <security/pam_modules.h>
#include <stdlib.h>

ICEs preprocessing the above with -Wtraditional

> gcc t.c -c -Wtraditional
In file included from /usr/include/features.h:488,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdlib.h:25,
                 from t.c:2:
/usr/include/sys/cdefs.h:1: internal compiler error: Segmentation fault
    1 | /* Copyright (C) 1992-2021 Free Software Foundation, Inc.
      | 
0xdef92b internal_error(char const*, ...)
        ???:0
0xddd540 cpp_sys_macro_p(cpp_reader*)
        ???:0
0xf0f026 _cpp_parse_expr
        ???:0
0xf0e452 _cpp_handle_directive
        ???:0
0xf09324 _cpp_lex_token
        ???:0
0xf21485 c_lex_with_flags(tree_node**, unsigned int*, unsigned char*, int)
        ???:0
0x1417068 c_parse_file()
        ???:0
0x1414d1b c_common_parse_file()
        ???:0
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://bugs.opensuse.org/> for instructions.

Reply via email to