[Issue 23408] New: __FUNCTION__ does resolve correctly
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 12 09:41:00 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=23408
Issue ID: 23408
Summary: __FUNCTION__ does resolve correctly
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: blocker
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: razvan.nitu1305 at gmail.com
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.
--
More information about the Digitalmars-d-bugs
mailing list