[Bug d/100964] d: TypeInfo error when using slice copy on Structs with -fno-rtti

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jun 9 18:04:26 GMT 2021


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)


More information about the Gcc-bugs mailing list