[Issue 19634] New: Usual Arithmetic Conversions doesn't define what happens on failure

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 30 01:10:48 UTC 2019


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 at puremagic.com
          Reporter: dhasenan at 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?

--


More information about the Digitalmars-d-bugs mailing list