public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/107594] New: ICE in module_state, at cp/module.cc:3810
@ 2022-11-09 17:53 gscfq@t-online.de
  2022-11-21 10:42 ` [Bug c++/107594] " marxin at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: gscfq@t-online.de @ 2022-11-09 17:53 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107594
           Summary: ICE in module_state, at cp/module.cc:3810
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Started with r11 :
(gcc configured with --enable-checking=yes)


$ cat z1.cc
import <nix>;


$ gcc-13-20221106 -c z1.cc -fmodules-ts -nostdinc
z1.cc:1:8: error: no include path in which to search for nix
    1 | import <nix>;
      |        ^~~~~
z1.cc:1:1: internal compiler error: in module_state, at cp/module.cc:3810
    1 | import <nix>;
      | ^~~~~~
0x98332e module_state::module_state(tree_node*, module_state*, bool)
        ../../gcc/cp/module.cc:3808
0x99b3a1 get_module(tree_node*, module_state*, bool)
        ../../gcc/cp/module.cc:13952
0x95554c module_token_filter::resume(int, int, tree_node*, unsigned int)
        ../../gcc/cp/lex.cc:513
0x95554c module_token_lang(int, int, tree_node*, unsigned int, unsigned long)
        ../../gcc/cp/lex.cc:563
0xa3b56b cp_lexer_new_main
        ../../gcc/cp/parser.cc:728
0xa3b56b c_parse_file()
        ../../gcc/cp/parser.cc:48815
0xbe0a71 c_common_parse_file()
        ../../gcc/c-family/c-opts.cc:1244

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

* [Bug c++/107594] ICE in module_state, at cp/module.cc:3810
  2022-11-09 17:53 [Bug c++/107594] New: ICE in module_state, at cp/module.cc:3810 gscfq@t-online.de
@ 2022-11-21 10:42 ` marxin at gcc dot gnu.org
  2024-01-30  4:22 ` cvs-commit at gcc dot gnu.org
  2024-01-30  4:23 ` nshead at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-11-21 10:42 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2022-11-21
     Ever confirmed|0                           |1
                 CC|                            |marxin at gcc dot gnu.org,
                   |                            |nathan at gcc dot gnu.org
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r11-6084-g4efde6781bba8d64.

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

* [Bug c++/107594] ICE in module_state, at cp/module.cc:3810
  2022-11-09 17:53 [Bug c++/107594] New: ICE in module_state, at cp/module.cc:3810 gscfq@t-online.de
  2022-11-21 10:42 ` [Bug c++/107594] " marxin at gcc dot gnu.org
@ 2024-01-30  4:22 ` cvs-commit at gcc dot gnu.org
  2024-01-30  4:23 ` nshead at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-01-30  4:22 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Nathaniel Shead <nshead@gcc.gnu.org>:

https://gcc.gnu.org/g:a88e08feb8367898e0562622517d33f95684a03d

commit r14-8513-ga88e08feb8367898e0562622517d33f95684a03d
Author: Nathaniel Shead <nathanieloshead@gmail.com>
Date:   Sat Jan 27 22:46:44 2024 +1100

    c++: Handle error header names in modules [PR107594]

    When there are no include paths while preprocessing a header-name token,
    an empty STRING_CST is returned. This patch ensures this is handled when
    attempting to create a module for this name.

            PR c++/107594

    gcc/cp/ChangeLog:

            * module.cc (get_module): Bail on empty name.

    Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>

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

* [Bug c++/107594] ICE in module_state, at cp/module.cc:3810
  2022-11-09 17:53 [Bug c++/107594] New: ICE in module_state, at cp/module.cc:3810 gscfq@t-online.de
  2022-11-21 10:42 ` [Bug c++/107594] " marxin at gcc dot gnu.org
  2024-01-30  4:22 ` cvs-commit at gcc dot gnu.org
@ 2024-01-30  4:23 ` nshead at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: nshead at gcc dot gnu.org @ 2024-01-30  4:23 UTC (permalink / raw)
  To: gcc-bugs

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

Nathaniel Shead <nshead at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |14.0
           Assignee|unassigned at gcc dot gnu.org      |nshead at gcc dot gnu.org
                 CC|                            |nshead at gcc dot gnu.org
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Nathaniel Shead <nshead at gcc dot gnu.org> ---
Fixed for GCC 14.

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

end of thread, other threads:[~2024-01-30  4:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-09 17:53 [Bug c++/107594] New: ICE in module_state, at cp/module.cc:3810 gscfq@t-online.de
2022-11-21 10:42 ` [Bug c++/107594] " marxin at gcc dot gnu.org
2024-01-30  4:22 ` cvs-commit at gcc dot gnu.org
2024-01-30  4:23 ` nshead 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).