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

           Summary: optlink doesn't complain about wrong extern
                    declaration
           Product: D
           Version: D1 & D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: Optlink
        AssignedTo: nob...@puremagic.com
        ReportedBy: mrmoc...@gmx.de


--- Comment #0 from Trass3r <mrmoc...@gmx.de> 2010-09-14 16:26:39 PDT ---
testc.c
=======

int foo;

test.d
======

extern(C)
{
    extern int foo;
}

void main()
{
    foo = 1;
}


> dmc -c testc.c && dmd test.d testc.obj && test.exe
object.Error: Access Violation

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

Reply via email to