digitalmars.D.bugs - [Issue 5577] New: Incorrectly generated di file with extern (C) and alias
- d-bugmail puremagic.com (35/35) Feb 14 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5577
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 puremagic.com ReportedBy: doob me.com --- Comment #0 from Jacob Carlborg <doob 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: -------
Feb 14 2011