- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This seems to be true for both icc
12.0.020101006
and
12.0.0 20100512
If I create a simple C or C++ program with a Cilk_for loop I get this warning
$ icpc -c -o foo.o foo.cpp -Wshadow
foo.cpp(2): warning #1944: declaration of "i" shadows a member of 'this'
the shadowed declaration is at line 2
_Cilk_for(int i=0; i
It doesn't matter whether I call it foo.cpp or foo.c or whether I use icc or icpc. The only way I can figure to turn off -Wshadow, which I prefer to use.
The program looks like this (one line):
void testloop (char *a, int N) { _Cilk_for(int i=0; i
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Bradley,
Yes I can reprodcue your case here.
I will submit this issue to our engineering team for more investigation.
Thanks,
Wise
Yes I can reprodcue your case here.
I will submit this issue to our engineering team for more investigation.
Thanks,
Wise
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This issue appears to be resolved in the icc 12.1.0 20110518 (which I have as a beta).
Thanks.
-Bradley
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page