[Bug c++/103754] [11,12][ice][modules] import bits/stdc++.h and map

2024-03-11 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103754

Patrick Palka  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  ---
This seems fixed in GCC 13/trunk.

[Bug c++/103754] [11,12][ice][modules] import bits/stdc++.h and map

2021-12-17 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103754

--- Comment #5 from Egor Pugin  ---
(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.

[Bug c++/103754] [11,12][ice][modules] import bits/stdc++.h and map

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103754

--- Comment #4 from Andrew Pinski  ---
(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.

[Bug c++/103754] [11,12][ice][modules] import bits/stdc++.h and map

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103754

Andrew Pinski  changed:

   What|Removed |Added

   Keywords||ice-on-valid-code
 Blocks||103524

--- Comment #3 from Andrew Pinski  ---
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

[Bug c++/103754] [11,12][ice][modules] import bits/stdc++.h and map

2021-12-16 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103754

--- Comment #2 from Egor Pugin  ---
Created attachment 52020
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52020=edit
more ice on g++-12 master

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

[Bug c++/103754] [11,12][ice][modules] import bits/stdc++.h and map

2021-12-16 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103754

Egor Pugin  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  ---
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