Bug 11323 – ICE with -inline in gother.c 989

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-10-22T03:16:00Z
Last change time
2013-11-19T10:55:46Z
Keywords
ice
Assigned to
nobody
Creator
code

Attachments

IDFilenameSummaryContent-TypeSize
1278repro.ziprepro caseapplication/zip1277

Comments

Comment #0 by code — 2013-10-22T03:16:01Z
Created attachment 1278 repro case The attached repro case will cause a ice. Tested with git head of the 2.064 branch. This issue might have the same cause as issue 11322.
Comment #1 by bugzilla — 2013-11-17T22:44:25Z
Reduced case: struct S { S* parent; uint m_nextCapturedIndex; int m_type; ref nextCapturedIndex() { if(m_type == 0) return m_nextCapturedIndex; else return parent.nextCapturedIndex; } } void analyze(S* r) { r.nextCapturedIndex++; } dmd -O -inline -c foo.d
Comment #2 by yebblies — 2013-11-18T00:50:06Z
Looks the same as issue 11322
Comment #3 by bugzilla — 2013-11-19T10:55:46Z
*** This issue has been marked as a duplicate of issue 11322 ***