Bug 23408 – __FUNCTION__ does not resolve correctly
Status
RESOLVED
Resolution
FIXED
Severity
blocker
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-10-12T09:41:00Z
Last change time
2024-06-24T12:13:07Z
Keywords
pull
Assigned to
No Owner
Creator
RazvanN
Comments
Comment #0 by razvan.nitu1305 — 2022-10-12T09:41:00Z
import std;
string foo(string arg)
{
return arg;
}
void bar(string s = foo(__FUNCTION__))
{
assert(s != ""); // this fails
}
void main()
{
bar();
}
This currently blocks the implementation of arrayCat lowering.
Comment #1 by dlang-bot — 2022-10-12T10:47:47Z
@RazvanN7 created dlang/dmd pull request #14549 "Fix Issues 23408 and 23403 - __FUNCTION__ does not resolve properly" fixing this issue:
- Fix Issues 23408 and 23403 - __FUNCTION__ does not resolve properly
https://github.com/dlang/dmd/pull/14549
Comment #2 by razvan.nitu1305 — 2024-06-24T12:13:07Z