[Issue 10873] New: Refused extern(C) function type definition with new alias syntax

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 22 17:07:00 PDT 2013


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

           Summary: Refused extern(C) function type definition with new
                    alias syntax
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2013-08-22 17:06:59 PDT ---
alias extern(C) void* function(in size_t size) nothrow T1; // OK
alias T2 = extern(C) void* function(in size_t size) nothrow; // Error
void main() {}


dmd 2.064alpha:

test.d(2): Error: basic type expected, not extern
test.d(2): Error: semicolon expected to close alias declaration
test.d(2): Error: no identifier for declarator extern (C) void* function(in
size_t size) nothrow

-- 
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