public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/103754] New: [11][ice][modules] import bits/stdc++.h and map
@ 2021-12-17  0:55 egor.pugin at gmail dot com
  2021-12-17  0:57 ` [Bug c++/103754] [11,12][ice][modules] " egor.pugin at gmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: egor.pugin at gmail dot com @ 2021-12-17  0:55 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 103754
           Summary: [11][ice][modules] import bits/stdc++.h and map
           Product: gcc
           Version: 11.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: egor.pugin at gmail dot com
  Target Milestone: ---

Created attachment 52019
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52019&action=edit
repro

./15899673681173752886.sh
+ rm -rf gcm.cache
+ g++ -std=c++2b -fmodules-ts -xc++-header
/usr/include/c++/11/x86_64-redhat-linux/bits/stdc++.h
+ g++ -std=c++2b -fmodules-ts -xc++-header /usr/include/c++/11/map
+ g++ -std=c++2b -xc++ -c -fmodules-ts command.cpp
In file included from /usr/include/c++/11/bits/shared_ptr_base.h:62,
                 from /usr/include/c++/11/bits/shared_ptr.h:53,
                 from /usr/include/c++/11/memory:77,
                 from /usr/include/c++/11/x86_64-redhat-linux/bits/stdc++.h:82,
of module /usr/include/c++/11/x86_64-redhat-linux/bits/stdc++.h, imported at
command.cpp:3:
/usr/include/c++/11/ext/concurrence.h: In destructor ‘virtual
__gnu_cxx::__concurrence_lock_error::~__concurrence_lock_error()’:
/usr/include/c++/11/ext/concurrence.h:64:9: internal compiler error: in
build_op_delete_call, at cp/call.c:7144
   64 |   class __concurrence_lock_error : public std::exception
      |         ^~~~~~~~~~~~~~~~~~~~~~~~

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

* [Bug c++/103754] [11,12][ice][modules] import bits/stdc++.h and map
  2021-12-17  0:55 [Bug c++/103754] New: [11][ice][modules] import bits/stdc++.h and map egor.pugin at gmail dot com
@ 2021-12-17  0:57 ` egor.pugin at gmail dot com
  2021-12-17  1:02 ` egor.pugin at gmail dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: egor.pugin at gmail dot com @ 2021-12-17  0:57 UTC (permalink / raw)
  To: gcc-bugs

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

Egor Pugin <egor.pugin at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[11][ice][modules] import   |[11,12][ice][modules]
                   |bits/stdc++.h and map       |import bits/stdc++.h and
                   |                            |map

--- Comment #1 from Egor Pugin <egor.pugin at gmail dot com> ---
on g++-12 from master it gives
/usr/include/c++/11/x86_64-redhat-linux/bits/stdc++.h: internal compiler error:
tree check: expected var_decl or function_decl or field_decl or type_decl or
concept_decl or template_decl, have namespace_decl in get_merge_kind, at
cp/module.cc:10072
0x85abf1 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        ../../gcc/tree.c:8701
0x6b6533 template_info_decl_check(tree_node const*, char const*, int, char
const*)
        ../../gcc/cp/cp-tree.h:651
0x6b7c55 template_info_decl_check(tree_node const*, char const*, int, char
const*)
        ../../gcc/cp/module.cc:10081
0x6b7c55 trees_out::get_merge_kind(tree_node*, depset*)
        ../../gcc/cp/module.cc:10070
0xa58cd9 trees_out::decl_value(tree_node*, depset*)
        ../../gcc/cp/module.cc:7501
0xa59e2b trees_out::decl_node(tree_node*, walk_kind)
        ../../gcc/cp/module.cc:8536
0xa5ae42 trees_out::tree_node(tree_node*)
        ../../gcc/cp/module.cc:9091
0xa5b18a trees_out::chained_decls(tree_node*)
        ../../gcc/cp/module.cc:4840
0xa5c219 trees_out::core_vals(tree_node*)
        ../../gcc/cp/module.cc:6060
0xa5ec14 trees_out::tree_node_vals(tree_node*)
        ../../gcc/cp/module.cc:7062
0xa5ec14 trees_out::tree_value(tree_node*)
        ../../gcc/cp/module.cc:8898
0xa5aca4 trees_out::tree_node(tree_node*)
        ../../gcc/cp/module.cc:9096
0xa5ed3c trees_out::write_function_def(tree_node*)
        ../../gcc/cp/module.cc:11352
0xa60f4c depset::hash::find_dependencies(module_state*)
        ../../gcc/cp/module.cc:13128
0xa61368 module_state::write(elf_out*, cpp_reader*)
        ../../gcc/cp/module.cc:17615
0xa62978 finish_module_processing(cpp_reader*)
        ../../gcc/cp/module.cc:19871
0x9f498b c_parse_final_cleanups()
        ../../gcc/cp/decl2.c:5218

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

* [Bug c++/103754] [11,12][ice][modules] import bits/stdc++.h and map
  2021-12-17  0:55 [Bug c++/103754] New: [11][ice][modules] import bits/stdc++.h and map egor.pugin at gmail dot com
  2021-12-17  0:57 ` [Bug c++/103754] [11,12][ice][modules] " egor.pugin at gmail dot com
@ 2021-12-17  1:02 ` egor.pugin at gmail dot com
  2021-12-17  3:03 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: egor.pugin at gmail dot com @ 2021-12-17  1:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Egor Pugin <egor.pugin at gmail dot com> ---
Created attachment 52020
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52020&action=edit
more ice on g++-12 master

Adding more ICE logs without filing new tickets in case if need to check more
error places.

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

* [Bug c++/103754] [11,12][ice][modules] import bits/stdc++.h and map
  2021-12-17  0:55 [Bug c++/103754] New: [11][ice][modules] import bits/stdc++.h and map egor.pugin at gmail dot com
  2021-12-17  0:57 ` [Bug c++/103754] [11,12][ice][modules] " egor.pugin at gmail dot com
  2021-12-17  1:02 ` egor.pugin at gmail dot com
@ 2021-12-17  3:03 ` pinskia at gcc dot gnu.org
  2021-12-17  3:04 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-17  3:03 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Blocks|                            |103524

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Sadly it looks like modules are no where near prime time.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103524
[Bug 103524] [meta-bug] modules issue

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

* [Bug c++/103754] [11,12][ice][modules] import bits/stdc++.h and map
  2021-12-17  0:55 [Bug c++/103754] New: [11][ice][modules] import bits/stdc++.h and map egor.pugin at gmail dot com
                   ` (2 preceding siblings ...)
  2021-12-17  3:03 ` pinskia at gcc dot gnu.org
@ 2021-12-17  3:04 ` pinskia at gcc dot gnu.org
  2021-12-17 17:30 ` egor.pugin at gmail dot com
  2024-03-11 21:05 ` ppalka at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-17  3:04 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Egor Pugin from comment #1)
> on g++-12 from master it gives
> /usr/include/c++/11/x86_64-redhat-linux/bits/stdc++.h: internal compiler
> error: tree check: expected var_decl or function_decl or field_decl or
> type_decl or concept_decl or template_decl, have namespace_decl in
> get_merge_kind, at cp/module.cc:10072

That is PR 102562.

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

* [Bug c++/103754] [11,12][ice][modules] import bits/stdc++.h and map
  2021-12-17  0:55 [Bug c++/103754] New: [11][ice][modules] import bits/stdc++.h and map egor.pugin at gmail dot com
                   ` (3 preceding siblings ...)
  2021-12-17  3:04 ` pinskia at gcc dot gnu.org
@ 2021-12-17 17:30 ` egor.pugin at gmail dot com
  2024-03-11 21:05 ` ppalka at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: egor.pugin at gmail dot com @ 2021-12-17 17:30 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Egor Pugin <egor.pugin at gmail dot com> ---
(In reply to Andrew Pinski from comment #3)
> Sadly it looks like modules are no where near prime time.

Seems so.
I set up my tooling and trying to play with them, but there are a lot of
issues.

Does someone working on fixing those items from meta-ticket?
Maybe I'll try to study the code and fix something.

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

* [Bug c++/103754] [11,12][ice][modules] import bits/stdc++.h and map
  2021-12-17  0:55 [Bug c++/103754] New: [11][ice][modules] import bits/stdc++.h and map egor.pugin at gmail dot com
                   ` (4 preceding siblings ...)
  2021-12-17 17:30 ` egor.pugin at gmail dot com
@ 2024-03-11 21:05 ` ppalka at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: ppalka at gcc dot gnu.org @ 2024-03-11 21:05 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ppalka at gcc dot gnu.org
   Target Milestone|---                         |13.0
         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #6 from Patrick Palka <ppalka at gcc dot gnu.org> ---
This seems fixed in GCC 13/trunk.

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

end of thread, other threads:[~2024-03-11 21:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-17  0:55 [Bug c++/103754] New: [11][ice][modules] import bits/stdc++.h and map egor.pugin at gmail dot com
2021-12-17  0:57 ` [Bug c++/103754] [11,12][ice][modules] " egor.pugin at gmail dot com
2021-12-17  1:02 ` egor.pugin at gmail dot com
2021-12-17  3:03 ` pinskia at gcc dot gnu.org
2021-12-17  3:04 ` pinskia at gcc dot gnu.org
2021-12-17 17:30 ` egor.pugin at gmail dot com
2024-03-11 21:05 ` 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).