- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have icpc (ICC) 11.1 20100414, if i write a c++ program
If i compile with icpc -Werror-all main.cpp, i have 16
if i compile with icpc main.cpp, i have 12
I think it's a bug because error diagnostics option shoudn't change data alignment !
[cpp]#includestruct A { int a; double b; }; int main() { std::cout << sizeof(A) << std::endl; return 0; }[/cpp]
If i compile with icpc -Werror-all main.cpp, i have 16
if i compile with icpc main.cpp, i have 12
I think it's a bug because error diagnostics option shoudn't change data alignment !
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This problem has been fixed in our 12.0 compiler as of last April(cq #167827 and Quad 625034). Please upgrade to a recent compiler to get the fix.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, i will try it asap
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