www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17426] New: "version(none):" cant be overwritten by its

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

          Issue ID: 17426
           Summary: "version(none):" cant be overwritten by its
                    counterpart
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: wrong-code
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: b2.temp gmx.com

this test cast should crash at run-time

dmd veroverwrite.d -main -unittest

veroverwrite.d:

---
version(none):
unittest {assert(false);}
version(all):
unittest {assert(false);} // not compiled
version(none):
unittest {assert(false);}
---

--
May 23 2017