[Issue 14186] New: Silent syntax change from C and C++

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Feb 16 00:43:17 PST 2015


https://issues.dlang.org/show_bug.cgi?id=14186

          Issue ID: 14186
           Summary: Silent syntax change from C and C++
           Product: D
           Version: D1 & D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: spec
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: dfj1esp02 at sneakemail.com

(a ? b : c = 0) is parsed as ((a ? b : c) = 0) in D,
but as (a ? b : (c = 0)) in C and C++.

--


More information about the Digitalmars-d-bugs mailing list