www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19634] New: Usual Arithmetic Conversions doesn't define what

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?

--
Jan 29