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

--- Comment #3 from Vladimir Panteleev <dlang-bugzi...@thecybershadow.net> ---
Minimal object.d:

////////////////// object_.d //////////////////
module object;

class Object {}
struct OffsetTypeInfo {}
class TypeInfo {}
class TypeInfo_Class { void[136] foo = void; }
class TypeInfo_Struct { void[120] foo = void; }
struct ModuleInfo {}

auto fun()
{
    return (cast(int*)null)[0 .. 1];
}
///////////////////////////////////////////////

`dmd -c -m64 object_.d` will segfault if dmd was built with GCC 7.1 and -O2.

--

Reply via email to