← Back to index
|
Original Bugzilla link
Bug 13001 – Support VRP for ternary operator (CondExp)
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-06-28T03:47:00Z
Last change time
2014-06-29T03:29:13Z
Keywords
pull
Assigned to
nobody
Creator
lio+bugzilla
Comments
Comment #0
by lio+bugzilla — 2014-06-28T03:47:27Z
void main(string[] args) { byte b; foreach (const i; 0..args.length?2:3) b = i; } test/runnable/testcondrange.d(5): Error: cannot implicitly convert expression (i) of type const(int) to byte Expected: no error
Comment #1
by lio+bugzilla — 2014-06-28T03:49:57Z
https://github.com/D-Programming-Language/dmd/pull/3698
Comment #2
by github-bugzilla — 2014-06-29T03:15:48Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/6627d35269e34e33919f11463d9208a3b598b71a
Issue 13001 - Add VRP support for ternary operator ?:
https://github.com/D-Programming-Language/dmd/commit/3126735908e8f6db1428ea3b2c74438573a14648
Merge pull request #3698 from lionello/bug13001 Issue 13001 - Add VRP support for ternary operator ?: