www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 563] New: DebugSpecification doesn't work

reply d-bugmail puremagic.com writes:
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
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=563


smjg iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg iname.com




------- Comment #1 from smjg iname.com  2006-11-19 06:00 -------
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
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=563


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Comment #2 from bugzilla digitalmars.com  2007-10-04 04:17 -------
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