Bug 15740 – Indexing a std.typecons.Tuple with names doesn't work in ctfe

Status
NEW
Severity
major
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-03-02T10:22:16Z
Last change time
2024-12-01T16:26:07Z
Keywords
CTFE
Assigned to
No Owner
Creator
John Colvin
Moved to GitHub: phobos#10162 →

Comments

Comment #0 by john.loughran.colvin — 2016-03-02T10:22:16Z
This is technically speaking a regression, seeing as it did work before https://github.com/D-Programming-Language/phobos/pull/1308.
Comment #1 by cauterite — 2016-08-20T01:32:12Z
in what version? this is working for me with phobos master + DMD master as of 2016-08-20: import std.typecons; alias T = Tuple!(int, `foo`, int, `bar`); enum x = T(1,2).foo; pragma(msg, x);
Comment #2 by bastien.penavayre — 2017-05-21T17:02:52Z
This is what fails: import std.typecons; alias T = Tuple!(int, `foo`, int, `bar`); enum x = T(1,2); pragma(msg, x[0]);
Comment #3 by edi33416 — 2017-10-09T16:17:34Z
Isn't this a dmd bug?
Comment #4 by robert.schadek — 2024-12-01T16:26:07Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10162 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB