Bug 60269 - #pragma simd tsubst related ICE
Summary: #pragma simd tsubst related ICE
Status: RESOLVED WONTFIX
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.9.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2014-02-19 09:40 UTC by Jakub Jelinek
Modified: 2017-12-04 11:19 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2015-02-10 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub Jelinek 2014-02-19 09:40:42 UTC
template <int N>
void
foo (int *a, int *b, int *c)
{
#pragma simd vectorlength (N)
  for (int i = 0; i < N; i++)
    a[i] = b[i] * c[i];
}

void
bar (int *a, int *b, int *c)
{
  foo <64> (a, b, c);
}

ICEs with -fcilkplus, so clearly tsubst on it is not performed correctly.
Comment 1 Andrew Pinski 2015-02-10 06:14:13 UTC
Confirmed.
Comment 2 Paolo Carlini 2017-12-04 11:19:49 UTC
Cilk Plus, deprecated for 7.x, will not be in 8.x.