Bug 19315 – #line inside token string affect outside code

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-10-19T19:35:42Z
Last change time
2019-06-26T12:09:54Z
Keywords
pull
Assigned to
No Owner
Creator
Jacob Carlborg

Comments

Comment #0 by doob — 2018-10-19T19:35:42Z
The static assert in the following code unexpectadely passes: enum code = q{ #line 10 }; static assert(__LINE__ == 11); "#line 10" when used inside a token string affects the code outside of the string.
Comment #1 by dlang-bot — 2019-06-25T18:31:25Z
@dkorpel updated dlang/dmd pull request #10086 "Fix issue 19315 - #line inside token string affect outside code" fixing this issue: - fix issue 19315 - #line inside token string affect outside code https://github.com/dlang/dmd/pull/10086
Comment #2 by dlang-bot — 2019-06-26T02:00:50Z
dlang/dmd pull request #10086 "Fix issue 19315 - #line inside token string affect outside code" was merged into master: - 87f623433ed3968e0349d6b5598910215368411d by dkorpel: fix issue 19315 - #line inside token string affect outside code https://github.com/dlang/dmd/pull/10086
Comment #3 by dlang-bot — 2019-06-26T07:22:34Z
dlang/dmd pull request #10090 "Revert "Fix issue 19315 - #line inside token string affect outside code"" was merged into master: - f265d873fa85ce1d0e0c29c4a0f51f67c4145f35 by Petar Kirov: Revert "Fix issue 19315 - #line inside token string affect outside code" https://github.com/dlang/dmd/pull/10090
Comment #4 by dlang-bot — 2019-06-26T12:09:54Z
dlang/dmd pull request #10091 "Fix issue 19315 (follow-up) - #line inside token string affect outside code" was merged into master: - 7d3ba02c39b13738c47f251acdae37f8a762bb8c by dkorpel: fix issue 19315 with Walter's comments addressed https://github.com/dlang/dmd/pull/10091