public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug d/100964] New: d: TypeInfo error when using slice copy on Structs with -fno-rtti
@ 2021-06-08 11:26 ibuclaw at gdcproject dot org
2021-06-09 18:00 ` [Bug d/100964] " cvs-commit at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: ibuclaw at gdcproject dot org @ 2021-06-08 11:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100964
Bug ID: 100964
Summary: d: TypeInfo error when using slice copy on Structs
with -fno-rtti
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: d
Assignee: ibuclaw at gdcproject dot org
Reporter: ibuclaw at gdcproject dot org
Target Milestone: ---
Example test:
---
//flags: -fno-druntime
struct A{}
extern(C):
void main()
{
int* x;
x[0 .. 0] = x[0 .. 0];
//OK
A* a;
a[0 .. 0] = a[0 .. 0];
//Error: TypeInfo cannot be used with -fno-rtti
}
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug d/100964] d: TypeInfo error when using slice copy on Structs with -fno-rtti
2021-06-08 11:26 [Bug d/100964] New: d: TypeInfo error when using slice copy on Structs with -fno-rtti ibuclaw at gdcproject dot org
@ 2021-06-09 18:00 ` cvs-commit at gcc dot gnu.org
2021-06-09 18:01 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-06-09 18:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100964
--- Comment #1 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:036e14ca44eaddf329a79d56d556862118b1f220
commit r12-1345-g036e14ca44eaddf329a79d56d556862118b1f220
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date: Wed Jun 9 19:39:28 2021 +0200
d: TypeInfo error when using slice copy on Structs (PR100964)
Known limitation: does not work for struct with postblit or dtor.
Reviewed-on: https://github.com/dlang/dmd/pull/12648
gcc/d/ChangeLog:
PR d/100964
* dmd/MERGE: Merge upstream dmd 4a4e46a6f.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug d/100964] d: TypeInfo error when using slice copy on Structs with -fno-rtti
2021-06-08 11:26 [Bug d/100964] New: d: TypeInfo error when using slice copy on Structs with -fno-rtti ibuclaw at gdcproject dot org
2021-06-09 18:00 ` [Bug d/100964] " cvs-commit at gcc dot gnu.org
@ 2021-06-09 18:01 ` cvs-commit at gcc dot gnu.org
2021-06-09 18:03 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-06-09 18:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100964
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Iain Buclaw
<ibuclaw@gcc.gnu.org>:
https://gcc.gnu.org/g:10d4f283f4177d80cec3c9e8bf447a48cab5bb47
commit r11-8536-g10d4f283f4177d80cec3c9e8bf447a48cab5bb47
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date: Wed Jun 9 19:39:28 2021 +0200
d: TypeInfo error when using slice copy on Structs (PR100964)
Known limitation: does not work for struct with postblit or dtor.
gcc/d/ChangeLog:
PR d/100964
* dmd/expression.c (Expression::checkPostblit): Don't generate
TypeInfo when RTTI is disabled.
gcc/testsuite/ChangeLog:
PR d/100964
* gdc.test/compilable/betterCarray.d: Add test cases.
(cherry picked from commit 036e14ca44eaddf329a79d56d556862118b1f220)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug d/100964] d: TypeInfo error when using slice copy on Structs with -fno-rtti
2021-06-08 11:26 [Bug d/100964] New: d: TypeInfo error when using slice copy on Structs with -fno-rtti ibuclaw at gdcproject dot org
2021-06-09 18:00 ` [Bug d/100964] " cvs-commit at gcc dot gnu.org
2021-06-09 18:01 ` cvs-commit at gcc dot gnu.org
@ 2021-06-09 18:03 ` cvs-commit at gcc dot gnu.org
2021-06-09 18:04 ` cvs-commit at gcc dot gnu.org
2021-06-09 18:06 ` ibuclaw at gdcproject dot org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-06-09 18:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100964
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Iain Buclaw
<ibuclaw@gcc.gnu.org>:
https://gcc.gnu.org/g:d660f34b6718c5f107fd1f1a2126aec759a6593b
commit r10-9899-gd660f34b6718c5f107fd1f1a2126aec759a6593b
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date: Wed Jun 9 19:39:28 2021 +0200
d: TypeInfo error when using slice copy on Structs (PR100964)
Known limitation: does not work for struct with postblit or dtor.
gcc/d/ChangeLog:
PR d/100964
* dmd/expression.c (Expression::checkPostblit): Don't generate
TypeInfo when RTTI is disabled.
gcc/testsuite/ChangeLog:
PR d/100964
* gdc.test/compilable/betterCarray.d: Add test cases.
(cherry picked from commit 10d4f283f4177d80cec3c9e8bf447a48cab5bb47)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug d/100964] d: TypeInfo error when using slice copy on Structs with -fno-rtti
2021-06-08 11:26 [Bug d/100964] New: d: TypeInfo error when using slice copy on Structs with -fno-rtti ibuclaw at gdcproject dot org
` (2 preceding siblings ...)
2021-06-09 18:03 ` cvs-commit at gcc dot gnu.org
@ 2021-06-09 18:04 ` cvs-commit at gcc dot gnu.org
2021-06-09 18:06 ` ibuclaw at gdcproject dot org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-06-09 18:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100964
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Iain Buclaw
<ibuclaw@gcc.gnu.org>:
https://gcc.gnu.org/g:d0ff449baf8d64819badb1883221b5b7295e7406
commit r9-9576-gd0ff449baf8d64819badb1883221b5b7295e7406
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date: Wed Jun 9 19:39:28 2021 +0200
d: TypeInfo error when using slice copy on Structs (PR100964)
Known limitation: does not work for struct with postblit or dtor.
gcc/d/ChangeLog:
PR d/100964
* dmd/expression.c (Expression::checkPostblit): Don't generate
TypeInfo when RTTI is disabled.
gcc/testsuite/ChangeLog:
PR d/100964
* gdc.test/compilable/betterCarray.d: Add test cases.
(cherry picked from commit 10d4f283f4177d80cec3c9e8bf447a48cab5bb47)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug d/100964] d: TypeInfo error when using slice copy on Structs with -fno-rtti
2021-06-08 11:26 [Bug d/100964] New: d: TypeInfo error when using slice copy on Structs with -fno-rtti ibuclaw at gdcproject dot org
` (3 preceding siblings ...)
2021-06-09 18:04 ` cvs-commit at gcc dot gnu.org
@ 2021-06-09 18:06 ` ibuclaw at gdcproject dot org
4 siblings, 0 replies; 6+ messages in thread
From: ibuclaw at gdcproject dot org @ 2021-06-09 18:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100964
Iain Buclaw <ibuclaw at gdcproject dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|UNCONFIRMED |RESOLVED
--- Comment #5 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
Fix committed
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-06-09 18:06 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-08 11:26 [Bug d/100964] New: d: TypeInfo error when using slice copy on Structs with -fno-rtti ibuclaw at gdcproject dot org
2021-06-09 18:00 ` [Bug d/100964] " cvs-commit at gcc dot gnu.org
2021-06-09 18:01 ` cvs-commit at gcc dot gnu.org
2021-06-09 18:03 ` cvs-commit at gcc dot gnu.org
2021-06-09 18:04 ` cvs-commit at gcc dot gnu.org
2021-06-09 18:06 ` 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).