- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
[plain]$ cat foo.c void foo(void) { int n; } $ icc -Wdeclaration-after-statement -c foo.c foo.c(3): warning #311: declaration may not appear after executable statement in block int n; ^ $ icc --version icc (ICC) 12.1.0 20110811 Copyright (C) 1985-2011 Intel Corporation. All rights reserved. [/plain]This does not happen with any other release.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have reproduced the issue. I have submitted a report to Intel compiler development team. I will update the thread when I have more information on this.

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