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

          Issue ID: 22894
           Summary: importC: static struct initializer can't take address
                    of own field
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ImportC, rejects-valid
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

struct queue
{
        int *first;
        int **last;
};
struct queue my_queue = {
        0,
        &my_queue.first
};

Error: static variable `my_queue` cannot be read at compile time

--

Reply via email to