www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14186] New: Silent syntax change from C and C++

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 puremagic.com
          Reporter: dfj1esp02 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++.

--
Feb 16 2015