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

            Bug ID: 107399
           Summary: ICE in cpp_maybe_module_directive, at
                    libcpp/lex.cc:3454
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Started wirh r11, using e.g. file g++.dg/modules/namespace-1_a.C :
(gcc configured with --enable-checking=yes)


$ g++-13-20221023 -c namespace-1_a.C -fmodules-ts
$
$ g++-13-20221023 -c namespace-1_a.C -fmodules-ts -C
namespace-1_a.C:6:1: internal compiler error: in cpp_maybe_module_directive, at
libcpp/lex.cc:3454
    6 | {
      | ^
0x223f0b0 cpp_maybe_module_directive
        ../../libcpp/lex.cc:3449
0x223f0b0 _cpp_lex_token
        ../../libcpp/lex.cc:3638
0x22459df cpp_get_token_1
        ../../libcpp/macro.cc:2930
0xbbd86d c_lex_with_flags(tree_node**, unsigned int*, unsigned char*, int)
        ../../gcc/c-family/c-lex.cc:490
0x9d8b66 cp_lexer_get_preprocessor_token
        ../../gcc/cp/parser.cc:940
0xa36fef cp_lexer_new_main
        ../../gcc/cp/parser.cc:736
0xa36fef c_parse_file()
        ../../gcc/cp/parser.cc:48854
0xbcfb01 c_common_parse_file()
        ../../gcc/c-family/c-opts.cc:1247

Reply via email to