public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug d/102094] New: d: ICE in gimple_register_canonical_type_1, at lto/lto-common.c:430
@ 2021-08-27 11:15 ibuclaw at gcc dot gnu.org
2021-08-28 14:46 ` [Bug d/102094] " ibuclaw at gdcproject dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: ibuclaw at gcc dot gnu.org @ 2021-08-27 11:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102094
Bug ID: 102094
Summary: d: ICE in gimple_register_canonical_type_1, at
lto/lto-common.c:430
Product: gcc
Version: 11.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: d
Assignee: ibuclaw at gdcproject dot org
Reporter: ibuclaw at gcc dot gnu.org
Target Milestone: ---
Looks like there's a TYPE_CXX_ODR_P mismatch between D closure frames and user
defined types.
---
extern(C) int printf(char* s, ...);
struct Wow
{
int a;
}
void formatValue()
{
Wow x;
void nested()
{
printf(cast(char*)0, x);
}
}
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug d/102094] d: ICE in gimple_register_canonical_type_1, at lto/lto-common.c:430
2021-08-27 11:15 [Bug d/102094] New: d: ICE in gimple_register_canonical_type_1, at lto/lto-common.c:430 ibuclaw at gcc dot gnu.org
@ 2021-08-28 14:46 ` ibuclaw at gdcproject dot org
2021-08-29 16:31 ` cvs-commit at gcc dot gnu.org
2021-08-29 16:32 ` ibuclaw at gdcproject dot org
2 siblings, 0 replies; 4+ messages in thread
From: ibuclaw at gdcproject dot org @ 2021-08-28 14:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102094
Iain Buclaw <ibuclaw at gdcproject dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|11.2.1 |12.0
--- Comment #1 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
Only affects 12.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug d/102094] d: ICE in gimple_register_canonical_type_1, at lto/lto-common.c:430
2021-08-27 11:15 [Bug d/102094] New: d: ICE in gimple_register_canonical_type_1, at lto/lto-common.c:430 ibuclaw at gcc dot gnu.org
2021-08-28 14:46 ` [Bug d/102094] " ibuclaw at gdcproject dot org
@ 2021-08-29 16:31 ` cvs-commit at gcc dot gnu.org
2021-08-29 16:32 ` ibuclaw at gdcproject dot org
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-08-29 16:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102094
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Iain Buclaw <ibuclaw@gcc.gnu.org>:
https://gcc.gnu.org/g:07984707be4eb9aea55dafbbc796790b8b8ac700
commit r12-3206-g07984707be4eb9aea55dafbbc796790b8b8ac700
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date: Sat Aug 28 16:57:03 2021 +0200
d: ICE in gimple_register_canonical_type_1, at lto/lto-common.c:430
(PR102094)
User defined types have the TYPE_CXX_ODR_P flag set, but closure frames
did not. This mismatch led to an ICE in the conflict detection for ODR
and interoperable non-ODR types. As a given closure frame is tied
explicitly to a function, it already conforms to ODR.
PR d/102094
gcc/d/ChangeLog:
* d-codegen.cc (build_frame_type): Set TYPE_CXX_ODR_P.
gcc/testsuite/ChangeLog:
* gdc.dg/lto/pr102094_0.d: New test.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug d/102094] d: ICE in gimple_register_canonical_type_1, at lto/lto-common.c:430
2021-08-27 11:15 [Bug d/102094] New: d: ICE in gimple_register_canonical_type_1, at lto/lto-common.c:430 ibuclaw at gcc dot gnu.org
2021-08-28 14:46 ` [Bug d/102094] " ibuclaw at gdcproject dot org
2021-08-29 16:31 ` cvs-commit at gcc dot gnu.org
@ 2021-08-29 16:32 ` ibuclaw at gdcproject dot org
2 siblings, 0 replies; 4+ messages in thread
From: ibuclaw at gdcproject dot org @ 2021-08-29 16:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102094
Iain Buclaw <ibuclaw at gdcproject dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|UNCONFIRMED |RESOLVED
--- Comment #3 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
Fix committed.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-08-29 16:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-27 11:15 [Bug d/102094] New: d: ICE in gimple_register_canonical_type_1, at lto/lto-common.c:430 ibuclaw at gcc dot gnu.org
2021-08-28 14:46 ` [Bug d/102094] " ibuclaw at gdcproject dot org
2021-08-29 16:31 ` cvs-commit at gcc dot gnu.org
2021-08-29 16:32 ` ibuclaw at gdcproject dot 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).