www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4868] New: optlink doesn't complain about wrong extern declaration

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



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: -------
Sep 14 2010