Bug 23469 – ICE when using private import

Status
RESOLVED
Resolution
WORKSFORME
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-11-07T01:15:13Z
Last change time
2022-11-11T11:41:12Z
Keywords
ice-on-valid-code
Assigned to
No Owner
Creator
Steven Schveighoffer

Comments

Comment #0 by schveiguy — 2022-11-07T01:15:13Z
Not sure how else to describe this bug. Reduced from a much larger test case: ```d struct S { private import std.traits : FieldNameTuple; float x = 0; } void main() { S x; foreach(v; x.FieldNameTuple!S) {} } ``` Change `x.FieldNameTuple!S` to `S.FieldNameTuple!S` and it works.
Comment #1 by razvan.nitu1305 — 2022-11-11T11:41:12Z
I cannot reproduce this with the most recent version of master. So this seems to have been fixed. Could you try it yourself with the most recent version of master? Closing as WORKSFORME.