[Issue 20260] New: CustomFloat with 0 precision/exponentWidth
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 2 16:16:51 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=20260
Issue ID: 20260
Summary: CustomFloat with 0 precision/exponentWidth
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: dlang at croco-puzzle.com
Both cases should be caught by template-constraint:
unittest
{
auto a = CustomFloat!(0, 7)(0.0);
auto b = CustomFloat!(7, 0)(0.0);
}
--
More information about the Digitalmars-d-bugs
mailing list