www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Bug 274] New: ice-on-valid: member of recursively templated

https://bugzilla.gdcproject.org/show_bug.cgi?id=274

            Bug ID: 274
           Summary: ice-on-valid: member of recursively templated
           Product: GDC
           Version: development
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gdc
          Assignee: ibuclaw gdcproject.org
          Reporter: sebastien.alaiwan gmail.com

void f()
{
  static class MyClass
  {
    MySmartPointer!MyClass m_member;
  }
}

struct MySmartPointer (T)
{
  T owner;
}

$ gdc crash.d
cc1d: ../../src/gcc/d/dfrontend/optimize.c:628: virtual void
Expression_optimize(Expression*, int, bool)::OptimizeVisitor::visit(CastExp*):
Assertion `cdfrom->sizeok == SIZEOKdone' failed.
cc1d: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.

-- 
You are receiving this mail because:
You are watching all bug changes.
Oct 16