[Issue 22841] New: importC: Error: variable 'var' is shadowing variable 'var'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 3 17:45:54 UTC 2022


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

          Issue ID: 22841
           Summary: importC: Error: variable 'var' is shadowing variable
                    'var'
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: ibuclaw at gdcproject.org

Shadowing in C11 is not forbidden, but can be warned about.

---
void test()
{
    int i;
    { unsigned i; }
}

--


More information about the Digitalmars-d-bugs mailing list