- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sample code:
enum e3 { z2 = sizeof(enum e6) };
Invocation:
$ icc -std=c11 -pedantic -Wall -Wextra -c
Expected diagnostics:
error: invalid application of 'sizeof' to an incomplete type 'enum e3'
Actual diagnostics:
<nothing>
Version:
icc 2021.5.0 on x86-64 on Linux
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for posting on Intel Communities.
>"Expected diagnostics:
error: invalid application of 'sizeof' to an incomplete type 'enum e3'"
Could you please let us know the standard reference based on which you are mentioning expected behavior so that we could consider your error/warning description?
Thanks & Regards,
Madhu.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Pavel,
We have reported this issue to the concerned development team. They are looking into your issue.
Best Regards,
Madhu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Pavel,
Not sure if you are aware of it, but the Intel C++ Classic compiler will enter "Legacy Product Support" mode signaling the end of regular updates. Please see the below article for more details.
So we suggest you try with the Intel C++ Compiler 2022 (icx) as it is working as expected when we checked it from our end.
Regards,
Madhu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
The version against which you reported your issue is no longer targeted for fixes. Please check out the new versions of Intel oneAPI Toolkits for the latest features. Please post a new question if you need any additional information from Intel, as this thread will no longer be monitored.
Best regards,
Madhu
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page