public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "vision05.dev at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/99187] New: C++ ICE compiling modules with third party library
Date: Sun, 21 Feb 2021 22:35:35 +0000	[thread overview]
Message-ID: <bug-99187-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 99187
           Summary: C++ ICE compiling modules with third party library
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vision05.dev at gmail dot com
  Target Milestone: ---

(compiler spew)

gcc -v:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-pc-linux-gnu/11.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc/configure
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.0.0 20210220 (experimental) (GCC)

When exporting a function in a module, where the function has an
immer::vector<T> (from the immer immutable data structures library) declared or
instantiated inside the function body the ICE is produced. The file compiles
correctly when the vector is not declared. Command passed to cause the ICE: g++
-fmodules-ts bug.cpp -I/usr/include/c++/10.2.0/immer-0.6.2/ 

bug.cpp:5:9: internal compiler error: in tree_node, at cp/module.cc:9153
    5 | export module bug;
      |         ^~~~~~
0x69ccde trees_out::tree_node(tree_node*)
        ../../gcc/gcc/cp/module.cc:9153
0xa16ed9 trees_out::core_vals(tree_node*)
        ../../gcc/gcc/cp/module.cc:6023
0xa1a2e4 trees_out::tree_node_vals(tree_node*)
        ../../gcc/gcc/cp/module.cc:7164
0xa1a2e4 trees_out::tree_value(tree_node*)
        ../../gcc/gcc/cp/module.cc:8984
0xa16374 trees_out::tree_node(tree_node*)
        ../../gcc/gcc/cp/module.cc:9182
0xa16ed9 trees_out::core_vals(tree_node*)
        ../../gcc/gcc/cp/module.cc:6023
0xa1a2e4 trees_out::tree_node_vals(tree_node*)
        ../../gcc/gcc/cp/module.cc:7164
0xa1a2e4 trees_out::tree_value(tree_node*)
        ../../gcc/gcc/cp/module.cc:8984
0xa16374 trees_out::tree_node(tree_node*)
        ../../gcc/gcc/cp/module.cc:9182
0xa16ed9 trees_out::core_vals(tree_node*)
        ../../gcc/gcc/cp/module.cc:6023
0xa1a2e4 trees_out::tree_node_vals(tree_node*)
        ../../gcc/gcc/cp/module.cc:7164
0xa1a2e4 trees_out::tree_value(tree_node*)
        ../../gcc/gcc/cp/module.cc:8984
0xa16374 trees_out::tree_node(tree_node*)
        ../../gcc/gcc/cp/module.cc:9182
0xa16ed9 trees_out::core_vals(tree_node*)
        ../../gcc/gcc/cp/module.cc:6023
0xa1a2e4 trees_out::tree_node_vals(tree_node*)
        ../../gcc/gcc/cp/module.cc:7164
0xa1a2e4 trees_out::tree_value(tree_node*)
        ../../gcc/gcc/cp/module.cc:8984
0xa16374 trees_out::tree_node(tree_node*)
        ../../gcc/gcc/cp/module.cc:9182
0xa16ed9 trees_out::core_vals(tree_node*)
        ../../gcc/gcc/cp/module.cc:6023
0xa1a2e4 trees_out::tree_node_vals(tree_node*)
        ../../gcc/gcc/cp/module.cc:7164
0xa1a2e4 trees_out::tree_value(tree_node*)
        ../../gcc/gcc/cp/module.cc:8984
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.

             reply	other threads:[~2021-02-21 22:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-21 22:35 vision05.dev at gmail dot com [this message]
2021-02-21 22:43 ` [Bug c++/99187] " vision05.dev at gmail dot com
2022-10-20 19:14 ` [Bug c++/99187] [modules] ICE exporting thread_local static local variable ppalka at gcc dot gnu.org
2023-04-26  6:55 ` rguenth at gcc dot gnu.org
2023-07-27  9:22 ` rguenth at gcc dot gnu.org
2023-11-19 21:44 ` cvs-commit at gcc dot gnu.org
2024-01-09 16:27 ` ppalka at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-99187-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).