www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22316] New: ImportC is too permissive in allowing variable

https://issues.dlang.org/show_bug.cgi?id=22316

          Issue ID: 22316
           Summary: ImportC is too permissive in allowing variable and
                    function declarations
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: bugzilla digitalmars.com

The following:

    int x;
    extern int x; // ok
    typedef int INT;
    extern INT x; // ok
    extern char x; // should fail but does not

The same goes for functions and their types.

--
Sep 18