Summary: Error with no line number with pure static ctor
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD

--- Comment #0 from 2012-02-17 09:55:39 PST ---
immutable struct Foo(int n) {
    pure static this() {}
void main() {
    Foo!5 foo;

DMD 2.058 gives:

Error: pure function '_staticCtor2' cannot access mutable static data '__gate'
test2.d(5): Error: template instance test2.Foo!(5) error instantiating

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

Reply via email to