public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99174] New: [modules] ICE with recursive inclusion of header-unit
@ 2021-02-19 21:52 nathan at gcc dot gnu.org
  2021-02-22 13:46 ` [Bug c++/99174] " nathan at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: nathan at gcc dot gnu.org @ 2021-02-19 21:52 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99174
           Summary: [modules] ICE with recursive inclusion of header-unit
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nathan at gcc dot gnu.org
  Target Milestone: ---

self-inclusion considered dangerous

// 1_b.ii
import "./1_b.ii";



./cc1plus -quiet -std=c++20 -fmodule-header 1_b.ii                              
1_b.ii:1:1: internal compiler error: in read_preprocessor, at
cp/module.cc:17891
    1 | import "./1_b.ii";
      | ^~~~~~
0xce6da8 module_state::read_preprocessor(bool)
        ../../../src/gcc/cp/module.cc:17891
0xceb5db preprocess_module(module_state*, unsigned int, bool, bool, bool,
cpp_reader*)
        ../../../src/gcc/cp/module.cc:19446
0xc73707 module_token_filter::resume(int, int, tree_node*, unsigned int)
        ../../../src/gcc/cp/lex.c:520
0xc71c69 module_token_lang(int, int, tree_node*, unsigned int, unsigned long)
        ../../../src/gcc/cp/lex.c:557
0xd26638 cp_lexer_new_main
        ../../../src/gcc/cp/parser.c:658
0xd90362 c_parse_file()
        ../../../src/gcc/cp/parser.c:45168
0xf5194e c_common_parse_file()
        ../../../src/gcc/c-family/c-opts.c:1218

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-02-22 15:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-19 21:52 [Bug c++/99174] New: [modules] ICE with recursive inclusion of header-unit nathan at gcc dot gnu.org
2021-02-22 13:46 ` [Bug c++/99174] " nathan at gcc dot gnu.org
2021-02-22 15:51 ` cvs-commit at gcc dot gnu.org
2021-02-22 15:53 ` nathan at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).