public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99436] New: ICE in get_cxx_dialect_name, at cp/name-lookup.c:6955 when using modules on C++23
@ 2021-03-06 20:40 italolmm2018 at outlook dot com
  2021-03-08 19:58 ` [Bug c++/99436] " cvs-commit at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: italolmm2018 at outlook dot com @ 2021-03-06 20:40 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99436
           Summary: ICE in get_cxx_dialect_name, at cp/name-lookup.c:6955
                    when using modules on C++23
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: italolmm2018 at outlook dot com
  Target Milestone: ---

ICE when trying to 'export module' under C++23/C++2B:

gcc version 11.0.1 20210306 (experimental), configured with: ../configure
--target=i686-elf --prefix=/home/italo/chos/toolchain/kernel/x86/out
--enable-languages=c,c++ --enable-lto --disable-multilib --without-headers
--disable-nls --disable-werror

Command line and output:

$ x86_64-elf-g++ -std=c++2b -fmodules-ts -c test.cxx
test.cxx:1:8: internal compiler error: in get_cxx_dialect_name, at
cp/name-lookup.c:6955
    1 | export module test;
      |        ^~~~~~
0x67dca0 get_cxx_dialect_name(cxx_dialect)
        ../../gcc/cp/name-lookup.c:6955
0x680a49 get_cxx_dialect_name(cxx_dialect)
        ../../gcc/tree.h:3353
0x9e1056 module_state_config::get_dialect()
        ../../gcc/cp/module.cc:14443
0x9f7a74 module_state_config::module_state_config()
        ../../gcc/cp/module.cc:14416
0x9f7a74 module_state::write(elf_out*, cpp_reader*)
        ../../gcc/cp/module.cc:17663
0x9f8caf finish_module_processing(cpp_reader*)
        ../../gcc/cp/module.cc:19875
0x98cf4b c_parse_final_cleanups()
        ../../gcc/cp/decl2.c:5175
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

The contents of the test.cxx file are just 'export module test;', and it builds
normally when using -std=c++20.

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

* [Bug c++/99436] ICE in get_cxx_dialect_name, at cp/name-lookup.c:6955 when using modules on C++23
  2021-03-06 20:40 [Bug c++/99436] New: ICE in get_cxx_dialect_name, at cp/name-lookup.c:6955 when using modules on C++23 italolmm2018 at outlook dot com
@ 2021-03-08 19:58 ` cvs-commit at gcc dot gnu.org
  2021-03-08 20:02 ` nathan at gcc dot gnu.org
  2022-10-20 15:44 ` ppalka at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-03-08 19:58 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Nathan Sidwell <nathan@gcc.gnu.org>:

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

commit r11-7560-gbc56d27de97ecea813279ce5ba45b278dcccfe21
Author: Nathan Sidwell <nathan@acm.org>
Date:   Mon Mar 8 11:55:26 2021 -0800

    C++: Enable c++2b module mode [PR 99436]

    This adds support for c++23 mode to modules, and enables such testing.

            PR c++/99436
            gcc/cp/
            * name-lookup.c (get_cxx_dialect_name): Add cxx23.
            gcc/testsuite/
            * g++.dg/modules/modules.exp (MOD_STD_LIST): Add 2b.

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

* [Bug c++/99436] ICE in get_cxx_dialect_name, at cp/name-lookup.c:6955 when using modules on C++23
  2021-03-06 20:40 [Bug c++/99436] New: ICE in get_cxx_dialect_name, at cp/name-lookup.c:6955 when using modules on C++23 italolmm2018 at outlook dot com
  2021-03-08 19:58 ` [Bug c++/99436] " cvs-commit at gcc dot gnu.org
@ 2021-03-08 20:02 ` nathan at gcc dot gnu.org
  2022-10-20 15:44 ` ppalka at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: nathan at gcc dot gnu.org @ 2021-03-08 20:02 UTC (permalink / raw)
  To: gcc-bugs

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

Nathan Sidwell <nathan at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nathan at gcc dot gnu.org
         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #2 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
bc56d27de97 2021-03-08 | C++: Enable c++2b module mode [PR 99436]

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

* [Bug c++/99436] ICE in get_cxx_dialect_name, at cp/name-lookup.c:6955 when using modules on C++23
  2021-03-06 20:40 [Bug c++/99436] New: ICE in get_cxx_dialect_name, at cp/name-lookup.c:6955 when using modules on C++23 italolmm2018 at outlook dot com
  2021-03-08 19:58 ` [Bug c++/99436] " cvs-commit at gcc dot gnu.org
  2021-03-08 20:02 ` nathan at gcc dot gnu.org
@ 2022-10-20 15:44 ` ppalka at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: ppalka at gcc dot gnu.org @ 2022-10-20 15:44 UTC (permalink / raw)
  To: gcc-bugs

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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |unlvsur at live dot com

--- Comment #3 from Patrick Palka <ppalka at gcc dot gnu.org> ---
*** Bug 99330 has been marked as a duplicate of this bug. ***

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

end of thread, other threads:[~2022-10-20 15:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-06 20:40 [Bug c++/99436] New: ICE in get_cxx_dialect_name, at cp/name-lookup.c:6955 when using modules on C++23 italolmm2018 at outlook dot com
2021-03-08 19:58 ` [Bug c++/99436] " cvs-commit at gcc dot gnu.org
2021-03-08 20:02 ` nathan at gcc dot gnu.org
2022-10-20 15:44 ` ppalka 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).