https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101441
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Iain Buclaw <ibuc...@gcc.gnu.org>: https://gcc.gnu.org/g:9075f62ddc3b9ffdb9e1b28d472adfd7fef4a0f1 commit r11-8808-g9075f62ddc3b9ffdb9e1b28d472adfd7fef4a0f1 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)