[Issue 4868] New: optlink doesn't complain about wrong extern declaration

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 14 16:27:09 PDT 2010


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: nobody at puremagic.com
        ReportedBy: mrmocool at gmx.de


--- Comment #0 from Trass3r <mrmocool at 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: -------


More information about the Digitalmars-d-bugs mailing list