Bug 16965 – changed.d compile error

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
tools
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2016-12-11T12:45:13Z
Last change time
2017-12-24T22:24:56Z
Assigned to
No Owner
Creator
rdirective

Attachments

IDFilenameSummaryContent-TypeSize
1624Screenshot from 2016-12-11 06-43-56.pngscreenshot of compile state after changeimage/png271444
1625patchgit diff patchtext/plain709

Comments

Comment #0 by rdirective — 2016-12-11T12:45:13Z
Created attachment 1624 screenshot of compile state after change changed.d(77): Error: variable changed.getIssues.closedRE : Unable to initialize enum with class or pointer to struct. Use static const variable instead. I edited line 77 enum closedRE = ctRegex!(`((close|fix|address)e?(s|d)? )?(ticket|bug|tracker item|issue)s?:? *([\d ,\+&#and]+)`, "i"); changed enum to static const static const closedRE = ctRegex!(`((close|fix|address)e?(s|d)? )?(ticket|bug|tracker item|issue)s?:? *([\d ,\+&#and]+)`, "i"); This compiled but I do not know if this is good since I am new to D
Comment #1 by rdirective — 2016-12-11T12:48:43Z
Created attachment 1625 git diff patch
Comment #2 by greeenify — 2017-12-24T22:24:56Z
This has been fixed quite a while ago. Nowadays tools uses a CI to prevent such errors from happening again.