www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12926] New: backend/cgcs.c 351

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

          Issue ID: 12926
           Summary: backend/cgcs.c 351
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: critical
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: vlevenfeld gmail.com

import std.range;

struct Foo
    {        
        struct Baz {}
        auto call (T)(T)
            {    
                return bazs.back; // BUG if I remove or change this, it will
compile
            }
        Baz[] bazs; // BUG using int instead of Baz, it will compile
    }
struct Bar
    {
        auto option (int)
            {
                return 0;
            }
        ~this () // BUG removing this destructor, it will compile
            {                }
    }

void main ()
    {        
        Foo foo;
        foo.call (Bar ().option (1)); // BUG if I remove .option(1) it will
compile
    }

Internal error: backend/cgcs.c 351

--
Jun 15 2014