public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/102098] New: ICE when #include <boost/asio.hpp> with -fmodules-ts -std=c++20
@ 2021-08-27 14:42 accelerator0099 at gmail dot com
  2021-08-30  7:31 ` [Bug c/102098] " marxin at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: accelerator0099 at gmail dot com @ 2021-08-27 14:42 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102098
           Summary: ICE when #include <boost/asio.hpp> with -fmodules-ts
                    -std=c++20
           Product: gcc
           Version: 11.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: accelerator0099 at gmail dot com
  Target Milestone: ---

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib
--libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info
--with-bugurl=https://bugs.archlinux.org/
--enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++,d --with-isl
--with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit
--enable-cet=auto --enable-checking=release --enable-clocale=gnu
--enable-default-pie --enable-default-ssp --enable-gnu-indirect-function
--enable-gnu-unique-object --enable-install-libiberty --enable-linker-build-id
--enable-lto --enable-multilib --enable-plugin --enable-shared
--enable-threads=posix --disable-libssp --disable-libstdcxx-pch
--disable-libunwind-exceptions --disable-werror
gdc_include_dir=/usr/include/dlang/gdc
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.1.0 (GCC)

System:
Linux 5.13.12

Command:
g++ -std=c++20 -fmodules-ts -Wall -c broadcast_server.cc -save-temps

Sources:
Attached below

Output:
broadcast_server.cc:3:8: internal compiler error: in tree_node, at
cp/module.cc:9057
    3 | export module broadcast_server;
      |        ^
0x1797368 internal_error(char const*, ...)
        ???:0
0x67f8f9 fancy_abort(char const*, int, char const*)
        ???:0
0x765323 trees_out::core_vals(tree_node*)
        ???:0
0x768e78 trees_out::tree_value(tree_node*)
        ???:0
0x761e9c trees_out::tree_node(tree_node*)
        ???:0
0x765323 trees_out::core_vals(tree_node*)
        ???:0
0x768e78 trees_out::tree_value(tree_node*)
        ???:0
0x761e9c trees_out::tree_node(tree_node*)
        ???:0
0x765323 trees_out::core_vals(tree_node*)
        ???:0
0x768e78 trees_out::tree_value(tree_node*)
        ???:0
0x761e9c trees_out::tree_node(tree_node*)
        ???:0
0x765323 trees_out::core_vals(tree_node*)
        ???:0
0x768e78 trees_out::tree_value(tree_node*)
        ???:0
0x761e9c trees_out::tree_node(tree_node*)
        ???:0
0x765323 trees_out::core_vals(tree_node*)
        ???:0
0x768e78 trees_out::tree_value(tree_node*)
        ???:0
0x761e9c trees_out::tree_node(tree_node*)
        ???:0
0x765323 trees_out::core_vals(tree_node*)
        ???:0
0x768e78 trees_out::tree_value(tree_node*)
        ???:0
0x761e9c trees_out::tree_node(tree_node*)
        ???:0
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.


As you can see, there are "???:0"s instead of sources and line numbers.
Maybe the gcc on my os doesn't comtain debug information.

Do I need to rebuild it with debug enabled?

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

* [Bug c/102098] ICE when #include <boost/asio.hpp> with -fmodules-ts -std=c++20
  2021-08-27 14:42 [Bug c/102098] New: ICE when #include <boost/asio.hpp> with -fmodules-ts -std=c++20 accelerator0099 at gmail dot com
@ 2021-08-30  7:31 ` marxin at gcc dot gnu.org
  2021-08-30  7:49 ` pilarlatiesa at gmail dot com
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-08-30  7:31 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marxin at gcc dot gnu.org
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2021-08-30
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Please attach the source files..

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

* [Bug c/102098] ICE when #include <boost/asio.hpp> with -fmodules-ts -std=c++20
  2021-08-27 14:42 [Bug c/102098] New: ICE when #include <boost/asio.hpp> with -fmodules-ts -std=c++20 accelerator0099 at gmail dot com
  2021-08-30  7:31 ` [Bug c/102098] " marxin at gcc dot gnu.org
@ 2021-08-30  7:49 ` pilarlatiesa at gmail dot com
  2021-08-30  8:27 ` [Bug c/102098] ICE when #include <boost/asio.hpp> with -fmodules-ts -std=c++20 since r11-7530-g1e5cdb9f896fb220 marxin at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pilarlatiesa at gmail dot com @ 2021-08-30  7:49 UTC (permalink / raw)
  To: gcc-bugs

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

Pilar Latiesa <pilarlatiesa at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pilarlatiesa at gmail dot com

--- Comment #2 from Pilar Latiesa <pilarlatiesa at gmail dot com> ---
I can reproduce with:

$ cat test.cpp

module;

#include <boost/asio.hpp>

export module foo;

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

* [Bug c/102098] ICE when #include <boost/asio.hpp> with -fmodules-ts -std=c++20 since r11-7530-g1e5cdb9f896fb220
  2021-08-27 14:42 [Bug c/102098] New: ICE when #include <boost/asio.hpp> with -fmodules-ts -std=c++20 accelerator0099 at gmail dot com
  2021-08-30  7:31 ` [Bug c/102098] " marxin at gcc dot gnu.org
  2021-08-30  7:49 ` pilarlatiesa at gmail dot com
@ 2021-08-30  8:27 ` marxin at gcc dot gnu.org
  2021-08-31 14:09 ` [Bug c++/102098] " accelerator0099 at gmail dot com
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-08-30  8:27 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ICE when #include           |ICE when #include
                   |<boost/asio.hpp> with       |<boost/asio.hpp> with
                   |-fmodules-ts -std=c++20     |-fmodules-ts -std=c++20
                   |                            |since
                   |                            |r11-7530-g1e5cdb9f896fb220
             Status|WAITING                     |NEW

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, reduced test-case:

$ cat pr102098.ii
module;
# 1 "" 1 3
struct Trans_NS__V2_error_category {
  virtual equivalent();
};
struct error_condition {
  Trans_NS__V2_error_category &category() const;
};
struct error_category {
  friend Trans_NS__V2_error_category const &to_std_category();
};
template <typename> struct _Rb_tree_iterator {
  typedef _Rb_tree_iterator _Self;
  friend operator==(_Self, _Self) {}
};
template <typename _Val> struct _Rb_tree {
  typedef _Rb_tree_iterator<_Val> iterator;
};
template <typename _Key, typename> struct map {
  typedef typename _Rb_tree<_Key>::iterator iterator;
};
struct std_category {
  bool equivalent(const error_condition &) const;
};
map<const error_category *, int>::iterator __trans_tmp_2;
inline Trans_NS__V2_error_category const &to_std_category() {
  map<const error_category *, std_category>::iterator i;
  i == __trans_tmp_2;
}
inline bool std_category::equivalent(const error_condition &condition) const {
  dynamic_cast<std_category *>(&condition.category());
}
# 0 "" 2
export module foo;

Started with r11-7530-g1e5cdb9f896fb220.

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

* [Bug c++/102098] ICE when #include <boost/asio.hpp> with -fmodules-ts -std=c++20 since r11-7530-g1e5cdb9f896fb220
  2021-08-27 14:42 [Bug c/102098] New: ICE when #include <boost/asio.hpp> with -fmodules-ts -std=c++20 accelerator0099 at gmail dot com
                   ` (2 preceding siblings ...)
  2021-08-30  8:27 ` [Bug c/102098] ICE when #include <boost/asio.hpp> with -fmodules-ts -std=c++20 since r11-7530-g1e5cdb9f896fb220 marxin at gcc dot gnu.org
@ 2021-08-31 14:09 ` accelerator0099 at gmail dot com
  2021-08-31 14:10 ` accelerator0099 at gmail dot com
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: accelerator0099 at gmail dot com @ 2021-08-31 14:09 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Devourer Station <accelerator0099 at gmail dot com> ---
Created attachment 51388
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51388&action=edit
preprocessed source file (xz compressed)

preprocessed source file (xz compressed)

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

* [Bug c++/102098] ICE when #include <boost/asio.hpp> with -fmodules-ts -std=c++20 since r11-7530-g1e5cdb9f896fb220
  2021-08-27 14:42 [Bug c/102098] New: ICE when #include <boost/asio.hpp> with -fmodules-ts -std=c++20 accelerator0099 at gmail dot com
                   ` (3 preceding siblings ...)
  2021-08-31 14:09 ` [Bug c++/102098] " accelerator0099 at gmail dot com
@ 2021-08-31 14:10 ` accelerator0099 at gmail dot com
  2022-05-30  6:23 ` accelerator0099 at gmail dot com
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: accelerator0099 at gmail dot com @ 2021-08-31 14:10 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Devourer Station <accelerator0099 at gmail dot com> ---
(In reply to Martin Liška from comment #1)
> Please attach the source files..

I'm sorry that the attachment suddenly went missing.
I reattached it.

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

* [Bug c++/102098] ICE when #include <boost/asio.hpp> with -fmodules-ts -std=c++20 since r11-7530-g1e5cdb9f896fb220
  2021-08-27 14:42 [Bug c/102098] New: ICE when #include <boost/asio.hpp> with -fmodules-ts -std=c++20 accelerator0099 at gmail dot com
                   ` (4 preceding siblings ...)
  2021-08-31 14:10 ` accelerator0099 at gmail dot com
@ 2022-05-30  6:23 ` accelerator0099 at gmail dot com
  2023-08-06  1:29 ` accelerator0099 at gmail dot com
  2023-08-06  1:30 ` accelerator0099 at gmail dot com
  7 siblings, 0 replies; 9+ messages in thread
From: accelerator0099 at gmail dot com @ 2022-05-30  6:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Devourer Station <accelerator0099 at gmail dot com> ---
Still exists with 11.2.0

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

* [Bug c++/102098] ICE when #include <boost/asio.hpp> with -fmodules-ts -std=c++20 since r11-7530-g1e5cdb9f896fb220
  2021-08-27 14:42 [Bug c/102098] New: ICE when #include <boost/asio.hpp> with -fmodules-ts -std=c++20 accelerator0099 at gmail dot com
                   ` (5 preceding siblings ...)
  2022-05-30  6:23 ` accelerator0099 at gmail dot com
@ 2023-08-06  1:29 ` accelerator0099 at gmail dot com
  2023-08-06  1:30 ` accelerator0099 at gmail dot com
  7 siblings, 0 replies; 9+ messages in thread
From: accelerator0099 at gmail dot com @ 2023-08-06  1:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Devourer Station <accelerator0099 at gmail dot com> ---
Confirmed solved in 13.1.1

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

* [Bug c++/102098] ICE when #include <boost/asio.hpp> with -fmodules-ts -std=c++20 since r11-7530-g1e5cdb9f896fb220
  2021-08-27 14:42 [Bug c/102098] New: ICE when #include <boost/asio.hpp> with -fmodules-ts -std=c++20 accelerator0099 at gmail dot com
                   ` (6 preceding siblings ...)
  2023-08-06  1:29 ` accelerator0099 at gmail dot com
@ 2023-08-06  1:30 ` accelerator0099 at gmail dot com
  7 siblings, 0 replies; 9+ messages in thread
From: accelerator0099 at gmail dot com @ 2023-08-06  1:30 UTC (permalink / raw)
  To: gcc-bugs

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

Devourer Station <accelerator0099 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #8 from Devourer Station <accelerator0099 at gmail dot com> ---
Confirmed fixed in 13.1.1

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

end of thread, other threads:[~2023-08-06  1:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-27 14:42 [Bug c/102098] New: ICE when #include <boost/asio.hpp> with -fmodules-ts -std=c++20 accelerator0099 at gmail dot com
2021-08-30  7:31 ` [Bug c/102098] " marxin at gcc dot gnu.org
2021-08-30  7:49 ` pilarlatiesa at gmail dot com
2021-08-30  8:27 ` [Bug c/102098] ICE when #include <boost/asio.hpp> with -fmodules-ts -std=c++20 since r11-7530-g1e5cdb9f896fb220 marxin at gcc dot gnu.org
2021-08-31 14:09 ` [Bug c++/102098] " accelerator0099 at gmail dot com
2021-08-31 14:10 ` accelerator0099 at gmail dot com
2022-05-30  6:23 ` accelerator0099 at gmail dot com
2023-08-06  1:29 ` accelerator0099 at gmail dot com
2023-08-06  1:30 ` accelerator0099 at gmail dot com

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).