Bug 8178 – Wrong line number in trying to modify enum string

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-06-01T13:21:00Z
Last change time
2012-10-20T15:00:15Z
Keywords
diagnostic
Assigned to
andrej.mitrovich
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2012-06-01T13:21:09Z
struct Foo { enum string s = "first"; } void main() { Foo.s = "second"; } dmd 2.060alpha gives a wrong line number of the error: test.d(2): Error: Cannot modify '"first"'
Comment #1 by github-bugzilla — 2012-10-20T14:57:31Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/8e899db77b0b84f745cfed3d84dd33bba55a3e6c Fixes Issue 8178 https://github.com/D-Programming-Language/dmd/commit/0ec078d388e4b929e9f38aed91e9b7857189fb61 Merge pull request #1196 from AndrejMitrovic/Fix8178 Fix Issue 8178 - Wrong line number in trying to modify enum string