Bug 21939 – Duplicate error messages for wrong aggregate in 'static foreach'
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-05-20T18:20:40Z
Last change time
2021-06-11T17:17:52Z
Keywords
pull
Assigned to
No Owner
Creator
Boris Carvajal
Comments
Comment #0 by boris2.9 — 2021-05-20T18:20:40Z
test:
---
static foreach (a; Object) {}
---
output:
test.d(1): Error: invalid `foreach` aggregate `Object`, define `opApply()`, range primitives, or use `.tupleof`
test.d(1): Error: invalid `foreach` aggregate `Object`, define `opApply()`, range primitives, or use `.tupleof`
Comment #1 by dlang-bot — 2021-05-20T18:45:38Z
@BorisCarvajal created dlang/dmd pull request #12547 "Fix Issue 21939 - Duplicate error messages for wrong aggregate in 'static foreach'" fixing this issue:
- Fix Issue 21939 - Duplicate error messages for wrong aggregate in 'static foreach'
https://github.com/dlang/dmd/pull/12547
Comment #2 by dlang-bot — 2021-05-20T23:41:24Z
dlang/dmd pull request #12547 "Fix Issue 21939 - Duplicate error messages for wrong aggregate in 'static foreach'" was merged into master:
- 16a478a6f874c8126534fee2de4b78d151bbae53 by Boris Carvajal:
Fix Issue 21939 - Duplicate error messages for wrong aggregate in 'static foreach'
https://github.com/dlang/dmd/pull/12547
Comment #3 by dlang-bot — 2021-06-11T17:17:52Z
dlang/dmd pull request #12668 "[dmd-cxx] Backport recent bug fixes for static foreach ICEs" was merged into dmd-cxx:
- e3f0082699cc264c335bc6e04c87f5c2e60216b4 by Boris Carvajal:
[dmd-cxx] Fix Issue 21939 - Duplicate error messages for wrong aggregate in 'static foreach'
https://github.com/dlang/dmd/pull/12668