[Issue 18919] __FILE__ and __LINE__ should work when used in default argument expressions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jan 7 22:57:56 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=18919
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #15968 "Fix issue 18919 - __FILE__ and __LINE__ should
work when used in defa…" was merged into master:
- b2b81060411ae02d8336cd0aa47265775f29a8b4 by Tim Schendekehl:
Fix issue 18919 - __FILE__ and __LINE__ should work when used in default
argument expressions
The parser now always creates AST nodes for default init expressions
like __FILE__. They are replaced in resolveLoc. Variable inDefaultArg
in Scope is used, so the nodes are not replaced too early.
https://github.com/dlang/dmd/pull/15968
--
More information about the Digitalmars-d-bugs
mailing list