www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1651] New: .di file generated with -H switch does not translate function() arguments correctly

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1651

           Summary: .di file generated with -H switch does not translate
                    function() arguments correctly
           Product: D
           Version: 2.007
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: schveiguy yahoo.com


When specifying -H switch for a function/class that looks like:

void f(void function() f2);

the .di file contains:

void f(void function()* f2);

which will not allow compilation.


-- 
Nov 08 2007
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1651






Created an attachment (id=206)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=206&action=view)
code that demonstrates problem


-- 
Nov 08 2007
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1651


schveiguy yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         OS/Version|Windows                     |All





Just checked this on Linux.  Has the same problem.


-- 
Nov 09 2007
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1651


bugzilla digitalmars.com changed:

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





Fixed dmd 2.008


-- 
Dec 04 2007