Bug 17782 – The identifier delimiter of a delimited string can not begin with '_'

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2017-08-27T03:18:44Z
Last change time
2017-10-16T09:57:31Z
Assigned to
No Owner
Creator
nmtigor.wang

Comments

Comment #0 by nmtigor.wang — 2017-08-27T03:18:44Z
The following code does not compile: @safe unittest { string str = q"_DLANG 123 _DLANG"; assert( str == "123\n" ); } Replacing "_DLANG" with "DLANG", it then compiles.
Comment #1 by nmtigor.wang — 2017-08-27T04:15:10Z
Comment #2 by github-bugzilla — 2017-09-09T03:46:19Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/f79bbbef2fa800c7ddecfec332e46b69a35ef2d2 fix issue 17782 - The identifier delimiter of a delimited string can not begin with '_' https://github.com/dlang/dmd/commit/1a9c34778bfc9c40029720c21079d5f652780a83 Merge pull request #7105 from nmtigor/issue_17782 fix issue 17782 - The identifier delimiter of a delimited string can not begin with '_' merged-on-behalf-of: Walter Bright <[email protected]>
Comment #3 by github-bugzilla — 2017-10-16T09:57:31Z
Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/f79bbbef2fa800c7ddecfec332e46b69a35ef2d2 fix issue 17782 - The identifier delimiter of a delimited string can not begin with '_' https://github.com/dlang/dmd/commit/1a9c34778bfc9c40029720c21079d5f652780a83 Merge pull request #7105 from nmtigor/issue_17782