Summary: regression: templates can create ghost fields
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: accepts-invalid
          Severity: regression
          Priority: P2
         Component: DMD

--- Comment #0 from 2012-06-14 07:36:12 PDT ---
DMD 2.059:

struct S{ template t(){ int t; } }
void main(){
    S s,t;
    writeln(t.t!());            // 0
    writeln(t.t!()," ",s.t!()); // 1 256

The code is illegal, but accepted.
I remember that such code used to be rejected.

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

Reply via email to