https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101441

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Iain Buclaw
<ibuc...@gcc.gnu.org>:

https://gcc.gnu.org/g:d835fea487ad8c9526a8088cbe83bf425f5c3e6b

commit r9-9649-gd835fea487ad8c9526a8088cbe83bf425f5c3e6b
Author: Iain Buclaw <ibuc...@gdcproject.org>
Date:   Mon Jul 26 15:24:12 2021 +0200

    d: __FUNCTION__ doesn't work in core.stdc.stdio functions without cast
(PR101441)

    Backports fix from upstream to allow __FUNCTION__ and
    __PRETTY_FUNCTION__ to be used as C string literals.

    Reviewed-on: https://github.com/dlang/dmd/pull/12923

            PR d/101441

    gcc/d/ChangeLog:

            * dmd/expression.c (FuncInitExp::resolveLoc): Set type as `string'.
            (PrettyFuncInitExp::resolveLoc): Likewise.

    gcc/testsuite/ChangeLog:

            * gdc.test/compilable/b19002.d: New test.

    (cherry picked from commit 1a2306ffe79df89389cc850ce85c586d0f1c8264)

Reply via email to