https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90604
Bug ID: 90604
Summary: ICE in sizemask, at d/dmd/mtype.c:2542
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: d
Assignee: ibuclaw at gdcproject dot org
Reporter: [email protected]
Target Milestone: ---
$ cat z1.d
void f (__vector(int[8]) n)
{ foreach (i; 0..n) n; }
$ gdc-10-20190519 -c z1.d
d21: internal compiler error: in sizemask, at d/dmd/mtype.c:2542
0x6f68a5 Type::sizemask()
../../gcc/d/dmd/mtype.c:2542
0x6dba5f IntRange::fromType(Type*, bool)
../../gcc/d/dmd/intrange.c:284
0x6dbae5 IntRange::fromType(Type*)
../../gcc/d/dmd/intrange.c:276
0x639a83 visit
../../gcc/d/dmd/dcast.c:3402
0x6428be getIntRange(Expression*)
../../gcc/d/dmd/dcast.c:3559
0x72a10a StatementSemanticVisitor::visit(ForeachRangeStatement*)
../../gcc/d/dmd/statementsem.c:1580
0x7288ea semantic(Statement*, Scope*)
../../gcc/d/dmd/statementsem.c:3498
0x7288ea StatementSemanticVisitor::visit(CompoundStatement*)
../../gcc/d/dmd/statementsem.c:139
0x7244e5 semantic(Statement*, Scope*)
../../gcc/d/dmd/statementsem.c:3498
0x6c958f FuncDeclaration::semantic3(Scope*)
../../gcc/d/dmd/func.c:1696
0x66c2ef Module::semantic3(Scope*)
../../gcc/d/dmd/dmodule.c:814
0x766675 d_parse_file()
../../gcc/d/d-lang.cc:1201