[Issue 22316] New: ImportC is too permissive in allowing variable and function declarations

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Sep 18 08:49:35 UTC 2021


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 at puremagic.com
          Reporter: bugzilla at 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.

--


More information about the Digitalmars-d-bugs mailing list