digitalmars.D.bugs - [Issue 563] New: DebugSpecification doesn't work
- d-bugmail puremagic.com (23/23) Nov 18 2006 http://d.puremagic.com/issues/show_bug.cgi?id=563
- d-bugmail puremagic.com (11/11) Nov 19 2006 http://d.puremagic.com/issues/show_bug.cgi?id=563
- d-bugmail puremagic.com (11/11) Oct 04 2007 http://d.puremagic.com/issues/show_bug.cgi?id=563
http://d.puremagic.com/issues/show_bug.cgi?id=563
Summary: DebugSpecification doesn't work
Product: D
Version: 0.174
Platform: PC
URL: http://www.digitalmars.com/d/version.html#debug
OS/Version: Windows
Status: NEW
Keywords: spec
Severity: normal
Priority: P4
Component: DMD
AssignedTo: bugzilla digitalmars.com
ReportedBy: deewiant gmail.com
OtherBugsDependingO 511
nThis:
void main() {
debug = foo;
debug (foo) printf("Foo\n");
}
Errors out with "asdf.d(2): found '=' instead of statement". Replace "foo" with
any valid debug identifier or level and the same error occurs.
--
Nov 18 2006
http://d.puremagic.com/issues/show_bug.cgi?id=563
smjg iname.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |smjg iname.com
The documentation is in a mess in terms of where such things are allowed.
Currently, the grammar allows DebugSpecification and VersionSpecification it
only at module level. But obviously it is supposed to be allowed within a CC
block that is at module level. But what about class level or function level?
--
Nov 19 2006
http://d.puremagic.com/issues/show_bug.cgi?id=563
bugzilla digitalmars.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
It is a DeclDef, which appears in a module or in an attribute specification.
The documentation can be improved, but it isn't wrong. They aren't allowed at
function or class scope.
--
Oct 04 2007









d-bugmail puremagic.com 