Summary: Invalid nested struct constructions should be detected
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Kenji Hara <> 2012-09-21 07:03:47 PDT ---
By fixing issue 8339, invalid accessing to nested struct shows compile error.
But, some cases are still accidentally accepted.

void check(T)()
    // nested struct constructions outside valid frame scope
    T t1 = T();
    T t2 = T(1);

void main()
    struct S
        int n;
        void foo(){}

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to