digitalmars.D.bugs - [Issue 3721] New: -debug flag doesn't behave as in spec
- d-bugmail puremagic.com (33/33) Jan 18 2010 http://d.puremagic.com/issues/show_bug.cgi?id=3721
- d-bugmail puremagic.com (12/12) Jun 12 2011 http://d.puremagic.com/issues/show_bug.cgi?id=3721
http://d.puremagic.com/issues/show_bug.cgi?id=3721 Summary: -debug flag doesn't behave as in spec Product: D Version: 2.038 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: jlquinn optonline.net --- I'm not sure if this is a spec bug, a compiler bug, or both. debug static assert(0); dmd -debug gives error as expected dmd -debug=0 gives no error as expected dmd -debug=2 gives error NOT expected dmd -debug=me gives no error (as expected?) The spec says that -debug enables this. Actually, should the spec be saying anything about a compiler flag?? One argument is that debug with no condition should be enabled by any debug level no matter what. Then there's no need to mention a -debug flag in the spec. debug (0) static assert(0); dmd -debug=0 gives error as expected dmd -debug gives error NOT expected dmd -debug=me gives error NOT expected Again, it's debatable what should happen with -debug. But -debug=me should definitely not give an error here according to the spec. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 18 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3721 yebblies <yebblies gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebblies gmail.com Resolution| |DUPLICATE *** This issue has been marked as a duplicate of issue 3321 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 12 2011