January 30, 2019 [Issue 19634] New: Usual Arithmetic Conversions doesn't define what happens on failure | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19634 Issue ID: 19634 Summary: Usual Arithmetic Conversions doesn't define what happens on failure Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: dhasenan@gmail.com https://dlang.org/spec/type.html#usual-arithmetic-conversions This defines a series of possible conversions used to bring two expressions to the same type for arithmetic operations. This set of conversions is mentioned for equality expressions, among others. However, the spec doesn't mention what happens when those conversions fail. I guess it's undefined behavior? -- |
Copyright © 1999-2021 by the D Language Foundation