[Issue 18919] __FILE__ and __LINE__ should work when used in default argument expressions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 30 10:56:35 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=18919

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #3 from Dlang Bot <dlang-bot at dlang.rocks> ---
@tim-dlang created dlang/dmd pull request #15968 "Fix issue 18919 - __FILE__
and __LINE__ should work when used in defa…" fixing this issue:

- 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