public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/98735] New: ICE with -std=c++20 -fmodules-ts -fsanitize=undefined
@ 2021-01-18 18:28 webrown.cpp at gmail dot com
  2021-01-18 19:17 ` [Bug c++/98735] " marxin at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: webrown.cpp at gmail dot com @ 2021-01-18 18:28 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98735
           Summary: ICE with -std=c++20 -fmodules-ts -fsanitize=undefined
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: webrown.cpp at gmail dot com
  Target Milestone: ---

Using gcc version 11.0.0 20210116 (experimental) (Homebrew GCC HEAD-2c356f2_2)
and compiling with flags:
   -std=c++20 -fmodules-ts -fsanitize=undefined
produces:
  internal compiler error: in tree_node, at cp/module.cc:9125
pointing at the module keyword (line 1) in the following innocuous program:

  export module X;

  export
    inline constexpr bool f( ) noexcept
    { return true; }

Removing -fsanitize=undefined permits successful compilation.

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

* [Bug c++/98735] ICE with -std=c++20 -fmodules-ts -fsanitize=undefined
  2021-01-18 18:28 [Bug c++/98735] New: ICE with -std=c++20 -fmodules-ts -fsanitize=undefined webrown.cpp at gmail dot com
@ 2021-01-18 19:17 ` marxin at gcc dot gnu.org
  2022-07-26  9:50 ` redi at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-01-18 19:17 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

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

* [Bug c++/98735] ICE with -std=c++20 -fmodules-ts -fsanitize=undefined
  2021-01-18 18:28 [Bug c++/98735] New: ICE with -std=c++20 -fmodules-ts -fsanitize=undefined webrown.cpp at gmail dot com
  2021-01-18 19:17 ` [Bug c++/98735] " marxin at gcc dot gnu.org
@ 2022-07-26  9:50 ` redi at gcc dot gnu.org
  2022-11-29 18:11 ` pinskia at gcc dot gnu.org
  2024-03-07 20:29 ` ppalka at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2022-07-26  9:50 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2021-01-18 00:00:00         |2022-7-26

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
mod.C:1:8: internal compiler error: in tree_node, at cp/module.cc:9192
    1 | export module X;
      |        ^~~~~~
0x6e1d98 trees_out::tree_node(tree_node*)
        /home/jwakely/src/gcc/gcc/gcc/cp/module.cc:9192
0xa93753 trees_out::core_vals(tree_node*)
        /home/jwakely/src/gcc/gcc/gcc/cp/module.cc:6028
0xa96e14 trees_out::tree_node_vals(tree_node*)
        /home/jwakely/src/gcc/gcc/gcc/cp/module.cc:7176
0xa96e14 trees_out::tree_value(tree_node*)
        /home/jwakely/src/gcc/gcc/gcc/cp/module.cc:9014
0xa92c41 trees_out::tree_node(tree_node*)
        /home/jwakely/src/gcc/gcc/gcc/cp/module.cc:9212
0xa93753 trees_out::core_vals(tree_node*)
        /home/jwakely/src/gcc/gcc/gcc/cp/module.cc:6028
0xa96e14 trees_out::tree_node_vals(tree_node*)
        /home/jwakely/src/gcc/gcc/gcc/cp/module.cc:7176
0xa96e14 trees_out::tree_value(tree_node*)
        /home/jwakely/src/gcc/gcc/gcc/cp/module.cc:9014
0xa92c41 trees_out::tree_node(tree_node*)
        /home/jwakely/src/gcc/gcc/gcc/cp/module.cc:9212
0xa93889 trees_out::core_vals(tree_node*)
        /home/jwakely/src/gcc/gcc/gcc/cp/module.cc:6219
0xa96e14 trees_out::tree_node_vals(tree_node*)
        /home/jwakely/src/gcc/gcc/gcc/cp/module.cc:7176
0xa96e14 trees_out::tree_value(tree_node*)
        /home/jwakely/src/gcc/gcc/gcc/cp/module.cc:9014
0xa92c41 trees_out::tree_node(tree_node*)
        /home/jwakely/src/gcc/gcc/gcc/cp/module.cc:9212
0xa96f52 trees_out::write_function_def(tree_node*)
        /home/jwakely/src/gcc/gcc/gcc/cp/module.cc:11472
0xa991d4 depset::hash::find_dependencies(module_state*)
        /home/jwakely/src/gcc/gcc/gcc/cp/module.cc:13250
0xa99670 module_state::write_begin(elf_out*, cpp_reader*, module_state_config&,
unsigned int&)
        /home/jwakely/src/gcc/gcc/gcc/cp/module.cc:17816
0xa9aa94 finish_module_processing(cpp_reader*)
        /home/jwakely/src/gcc/gcc/gcc/cp/module.cc:20150
0xa2849f c_parse_final_cleanups()
        /home/jwakely/src/gcc/gcc/gcc/cp/decl2.cc:5156
0xc4dbd0 c_common_parse_file()
        /home/jwakely/src/gcc/gcc/gcc/c-family/c-opts.cc:1253
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

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

* [Bug c++/98735] ICE with -std=c++20 -fmodules-ts -fsanitize=undefined
  2021-01-18 18:28 [Bug c++/98735] New: ICE with -std=c++20 -fmodules-ts -fsanitize=undefined webrown.cpp at gmail dot com
  2021-01-18 19:17 ` [Bug c++/98735] " marxin at gcc dot gnu.org
  2022-07-26  9:50 ` redi at gcc dot gnu.org
@ 2022-11-29 18:11 ` pinskia at gcc dot gnu.org
  2024-03-07 20:29 ` ppalka at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-11-29 18:11 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gscfq@t-online.de

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 107924 has been marked as a duplicate of this bug. ***

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

* [Bug c++/98735] ICE with -std=c++20 -fmodules-ts -fsanitize=undefined
  2021-01-18 18:28 [Bug c++/98735] New: ICE with -std=c++20 -fmodules-ts -fsanitize=undefined webrown.cpp at gmail dot com
                   ` (2 preceding siblings ...)
  2022-11-29 18:11 ` pinskia at gcc dot gnu.org
@ 2024-03-07 20:29 ` ppalka at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: ppalka at gcc dot gnu.org @ 2024-03-07 20:29 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ppalka at gcc dot gnu.org
   Last reconfirmed|2022-07-26 00:00:00         |2024-3-7

--- Comment #3 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Reconfirmed on trunk

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

end of thread, other threads:[~2024-03-07 20:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-18 18:28 [Bug c++/98735] New: ICE with -std=c++20 -fmodules-ts -fsanitize=undefined webrown.cpp at gmail dot com
2021-01-18 19:17 ` [Bug c++/98735] " marxin at gcc dot gnu.org
2022-07-26  9:50 ` redi at gcc dot gnu.org
2022-11-29 18:11 ` pinskia at gcc dot gnu.org
2024-03-07 20:29 ` 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).