digitalmars.D.bugs - [Issue 15557] New: Common type of void* and const(int)* should be
- via Digitalmars-d-bugs (25/25) Jan 11 2016 https://issues.dlang.org/show_bug.cgi?id=15557
https://issues.dlang.org/show_bug.cgi?id=15557 Issue ID: 15557 Summary: Common type of void* and const(int)* should be const(void)*, not const(int)* Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: jakobovrum gmail.com --- void main() { const(int)* a; void* b; auto c = true ? a : b; pragma(msg, typeof(c)); // const(int)* } --- typeof(c) should be const(void)*. This affects std.traits.CommonType. --
Jan 11 2016