[Bug d/101441] __FUNCTION__ doesn't work in core.stdc.stdio functions without cast
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jul 28 11:50:15 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101441
--- Comment #4 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:7e225a05dfa4587d193b5a90594190054e4898b1
commit r10-10006-g7e225a05dfa4587d193b5a90594190054e4898b1
Author: Iain Buclaw <ibuclaw@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)
More information about the Gcc-bugs
mailing list