public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99245] New: internal compiler error: in write_cluster, at cp/module.cc:14600
@ 2021-02-24 8:47 alexander.lelyakin at googlemail dot com
2021-02-28 18:54 ` [Bug c++/99245] [modules] ICE " alexander.lelyakin at googlemail dot com
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: alexander.lelyakin at googlemail dot com @ 2021-02-24 8:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99245
Bug ID: 99245
Summary: internal compiler error: in write_cluster, at
cp/module.cc:14600
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: alexander.lelyakin at googlemail dot com
Target Milestone: ---
g++ -std=c++20 -fmodules-ts -x c++-system-header typeinfo
g++ -std=c++20 -fmodules-ts -x c++-system-header vector
g++ -std=c++20 -fmodules-ts -x c++-system-header future
----
/usr/local/include/c++/11.0.0/future: internal compiler error: in
write_cluster, at cp/module.cc:14600
0x6e2d56 module_state::write_cluster(elf_out*, depset**, unsigned int,
depset::hash&, unsigned int*, unsigned int*)
../../gcc/gcc/cp/module.cc:14600
0xa62be8 module_state::write(elf_out*, cpp_reader*)
../../gcc/gcc/cp/module.cc:17734
0xa638fc finish_module_processing(cpp_reader*)
../../gcc/gcc/cp/module.cc:19860
0x9f72cb c_parse_final_cleanups()
../../gcc/gcc/cp/decl2.c:5175
----
g++ (GCC) 11.0.0 20210223 (experimental)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/99245] [modules] ICE in write_cluster, at cp/module.cc:14600
2021-02-24 8:47 [Bug c++/99245] New: internal compiler error: in write_cluster, at cp/module.cc:14600 alexander.lelyakin at googlemail dot com
@ 2021-02-28 18:54 ` alexander.lelyakin at googlemail dot com
2021-03-05 19:51 ` nathan at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: alexander.lelyakin at googlemail dot com @ 2021-02-28 18:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99245
--- Comment #1 from Alexander Lelyakin <alexander.lelyakin at googlemail dot com> ---
There is a shorter sequence:
g++ -std=c++20 -fmodules-ts -x c++-system-header typeinfo
g++ -std=c++20 -fmodules-ts -x c++-system-header ostream
----
/usr/local/include/c++/11.0.1/ostream: internal compiler error: in
write_cluster, at cp/module.cc:14605
0x6e2d18 module_state::write_cluster(elf_out*, depset**, unsigned int,
depset::hash&, unsigned int*, unsigned int*)
../../gcc/gcc/cp/module.cc:14605
0xa634de module_state::write(elf_out*, cpp_reader*)
../../gcc/gcc/cp/module.cc:17785
0xa640cf finish_module_processing(cpp_reader*)
../../gcc/gcc/cp/module.cc:19922
0x9f776b c_parse_final_cleanups()
../../gcc/gcc/cp/decl2.c:5175
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.
----
g++ (GCC) 11.0.1 20210228 (experimental)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/99245] [modules] ICE in write_cluster, at cp/module.cc:14600
2021-02-24 8:47 [Bug c++/99245] New: internal compiler error: in write_cluster, at cp/module.cc:14600 alexander.lelyakin at googlemail dot com
2021-02-28 18:54 ` [Bug c++/99245] [modules] ICE " alexander.lelyakin at googlemail dot com
@ 2021-03-05 19:51 ` nathan at gcc dot gnu.org
2021-03-05 20:54 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: nathan at gcc dot gnu.org @ 2021-03-05 19:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99245
Nathan Sidwell <nathan at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2021-03-05
Ever confirmed|0 |1
Status|UNCONFIRMED |ASSIGNED
--- Comment #2 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
// bug_a.ii
namespace std { class type_info {}; }
// bug_b.ii
namespace std { class type_info; }
import "bug_a.ii";
namespace std {
const type_info* __cxa_exception_type () noexcept;
}
evvm1702:160>./cc1plus -quiet -fmodule-header bug_a.ii && ./cc1plus -quiet
-fmodule-header bug_b.ii
bug_b.ii: internal compiler error: in write_cluster, at cp/module.cc:14506
0xcdfd72 module_state::write_cluster(elf_out*, depset**, unsigned int,
depset::hash&, unsigned int*, unsigned int*)
../../../src/gcc/cp/module.cc:14506
0xce9486 module_state::write(elf_out*, cpp_reader*)
../../../src/gcc/cp/module.cc:17763
0xcef73a finish_module_processing(cpp_reader*)
../../../src/gcc/cp/module.cc:19870
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/99245] [modules] ICE in write_cluster, at cp/module.cc:14600
2021-02-24 8:47 [Bug c++/99245] New: internal compiler error: in write_cluster, at cp/module.cc:14600 alexander.lelyakin at googlemail dot com
2021-02-28 18:54 ` [Bug c++/99245] [modules] ICE " alexander.lelyakin at googlemail dot com
2021-03-05 19:51 ` nathan at gcc dot gnu.org
@ 2021-03-05 20:54 ` cvs-commit at gcc dot gnu.org
2021-03-05 20:54 ` nathan at gcc dot gnu.org
2021-12-29 23:04 ` pinskia at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-03-05 20:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99245
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Nathan Sidwell <nathan@gcc.gnu.org>:
https://gcc.gnu.org/g:9e64dd6b3f6706de571c6ed3c4b7a8c8b67f22b7
commit r11-7532-g9e64dd6b3f6706de571c6ed3c4b7a8c8b67f22b7
Author: Nathan Sidwell <nathan@acm.org>
Date: Fri Mar 5 12:49:34 2021 -0800
c++: Duplicate namespace bindings [PR 99245]
Header units can declare the same entity, and this can lead to one of
them containing a (non-using) binding to an import. If one gets the
cluster ordering just right, an assert will trigger. Relax that assert.
PR c++/99245
gcc/cp/
* module.cc (module_state::write_cluster): Relax binding assert.
gcc/testsuite/
* g++.dg/modules/pr99245_a.H: New.
* g++.dg/modules/pr99245_b.H: New.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/99245] [modules] ICE in write_cluster, at cp/module.cc:14600
2021-02-24 8:47 [Bug c++/99245] New: internal compiler error: in write_cluster, at cp/module.cc:14600 alexander.lelyakin at googlemail dot com
` (2 preceding siblings ...)
2021-03-05 20:54 ` cvs-commit at gcc dot gnu.org
@ 2021-03-05 20:54 ` nathan at gcc dot gnu.org
2021-12-29 23:04 ` pinskia at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: nathan at gcc dot gnu.org @ 2021-03-05 20:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99245
Nathan Sidwell <nathan at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
9e64dd6b3f6 2021-03-05 | c++: Duplicate namespace bindings [PR 99245]
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/99245] [modules] ICE in write_cluster, at cp/module.cc:14600
2021-02-24 8:47 [Bug c++/99245] New: internal compiler error: in write_cluster, at cp/module.cc:14600 alexander.lelyakin at googlemail dot com
` (3 preceding siblings ...)
2021-03-05 20:54 ` nathan at gcc dot gnu.org
@ 2021-12-29 23:04 ` pinskia at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-29 23:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99245
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 99222 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-12-29 23:04 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-24 8:47 [Bug c++/99245] New: internal compiler error: in write_cluster, at cp/module.cc:14600 alexander.lelyakin at googlemail dot com
2021-02-28 18:54 ` [Bug c++/99245] [modules] ICE " alexander.lelyakin at googlemail dot com
2021-03-05 19:51 ` nathan at gcc dot gnu.org
2021-03-05 20:54 ` cvs-commit at gcc dot gnu.org
2021-03-05 20:54 ` nathan at gcc dot gnu.org
2021-12-29 23:04 ` pinskia 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).