www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Bug 290] New: ice-on-valid: Assertion `fd->semanticRun ==

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

            Bug ID: 290
           Summary: ice-on-valid: Assertion `fd->semanticRun ==
                    PASSsemantic3done' failed.
           Product: GDC
           Version: 7.x
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: Normal
         Component: gdc
          Assignee: ibuclaw gdcproject.org
          Reporter: sebastien.alaiwan gmail.com

This one spans on two modules. I couldn't reduce it more.

$ cat file_a.d       
// file_a.d
import file_b;

void f()
{
  import std.stdio;
  writefln("Startup");
}

struct Context
{
  Dim2f box;
}

$ cat file_b.d 
// file_b.d

struct GDim (T)
{
  T width, height;

  string toString() const
  {
    import std.string;
    return format("%sx%s", width, height);
  }
}

alias GDim!float Dim2f;

$ gdc file_a.d 
cc1d: ../../src/gcc/d/dfrontend/dinterpret.c:712: void
ctfeCompile(FuncDeclaration*): Assertion `fd->semanticRun == PASSsemantic3done'
failed.
/usr/lib/gcc/x86_64-linux-gnu/7/include/d/std/conv.d:114:13: internal compiler
error: Aborted
             return src ? "true" : "false";
             ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.

$ gdc --version
gdc (Debian 7.3.0-15) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

-- 
You are receiving this mail because:
You are watching all bug changes.
Apr 15 2018