Summary: Compile-time constant assigned with a runtime value
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2011-10-07 15:37:34 PDT ---
This program compiles with no errors (DMD 2.056head), but I think it's wrong
because the compile-time constant y gets assigned with a runtime value:

struct Foo {
    immutable uint x;
    void foo() {
        enum uint y = x;
void main(string[] args) {
    auto f = Foo(args.length);

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

Reply via email to