www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22069] New: importC: Error: found '&' instead of statement

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

          Issue ID: 22069
           Summary: importC: Error: found '&' instead of statement
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

This code is valid as per the grammar, but rejected.
---
void test()
{
  int var;
  &var;
}

--
Jun 22