D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 16681 - ICE 1662
Summary: ICE 1662
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 normal
Assignee: No Owner
URL:
Keywords: SIMD
Depends on:
Blocks:
 
Reported: 2016-11-11 12:48 UTC by Илья Ярошенко
Modified: 2020-12-28 09:54 UTC (History)
1 user (show)

See Also:


Attachments
the unittest is at the end (52.21 KB, text/x-dsrc)
2019-05-30 19:10 UTC, basile-z
Details

Note You need to log in before you can comment on or make changes to this issue.
Description Илья Ярошенко 2016-11-11 12:48:36 UTC
The unittest from 
/++
SIMD Vectors
Bugs: ICE 1662 (dmd only)
+/
unittest
{
    import core.simd;
    double2 a = 1, b = 2, c = 3, d = 6;
    with(Summation)
    {
        foreach (algo; AliasSeq!(naive, fast, pairwise, kahan))
        {
            assert([a, b, c].sum!algo.array == d.array);
            assert([a, b].sum!algo(c).array == d.array);
        }
    }
}
Comment 1 Илья Ярошенко 2016-11-11 12:49:47 UTC
PR https://github.com/dlang/phobos/pull/4896
Comment 2 Walter Bright 2016-11-22 00:10:41 UTC
I'm not sure what to do with this. The code fragment is too incomplete to compile (numerous undefined symbols), and the PR was closed.
Comment 3 basile-z 2019-05-30 19:10:58 UTC
Created attachment 1748 [details]
the unittest is at the end
Comment 4 basile-z 2019-05-30 19:11:28 UTC
not an ICE anymore, maybe a normal bug
Comment 5 Walter Bright 2020-12-28 09:54:43 UTC
I get the following when compiling the attachment with -unittest:

test2.d(1133): Error: need this for s of type __vector(double[2])

No ICE, so I'm going to mark this as resolved. If there's a further issue with it, please file a new bug report with a minimized example.