[Issue 5577] New: Incorrectly generated di file with extern (C) and alias

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 14 11:54:47 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5577

           Summary: Incorrectly generated di file with extern (C) and
                    alias
           Product: D
           Version: D1
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: doob at me.com


--- Comment #0 from Jacob Carlborg <doob at me.com> 2011-02-14 11:52:15 PST ---
The following D file:

module main;

void main ()
{
    alias extern (C) void function () f;
}

Compiled with "dmd -H main.d" produces this D interface file:

    // D import file generated from 'main.d'
module main;
void main()
{
extern (C) alias void function() f;

}

When compiling the interface file I get the following errors:

main.di(5): basic type expected, not alias
main.di(5): no identifier for declarator int
main.di(5): semicolon expected to close declaration, not 'alias'

This is using dmd 1.066.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list