- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
We found an internal compiler error using the Intel C++ 2022.1.0.
The bug occurs when you combine the use of gcc extensions __int128 and a switch case using the range (...) notation.
I have attached a trivial program that demonstrates the error.
You get this output from the compiler:
": internal error: 20000_0
compilation aborted for t.cpp (code 4)
This same code compiles and executes correctly using gcc or clang.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thank you for posting in Intel Communities.
We were able to reproduce your issue using the Intel classic compilers(icc & icpc).
However, we can compile the code successfully using the Intel oneAPI DPC++/C++ compilers(icx, icpx & dpcpp) as shown below:
So, we recommend you to use Intel oneAPI DPC++/C++ compilers(icx, icpx & dpcpp).
If this resolves your issue, make sure to accept this as a solution. This would help others with a similar issue. Thank you!
Best Regards,
Santosh
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thank you for posting in Intel Communities.
We were able to reproduce your issue using the Intel classic compilers(icc & icpc).
However, we can compile the code successfully using the Intel oneAPI DPC++/C++ compilers(icx, icpx & dpcpp) as shown below:
So, we recommend you to use Intel oneAPI DPC++/C++ compilers(icx, icpx & dpcpp).
If this resolves your issue, make sure to accept this as a solution. This would help others with a similar issue. Thank you!
Best Regards,
Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you!
We had not used the Intel compiler for many years and used icpc out of habit without understanding there were newer versions (icpx).
We updated our build to use icpx and it compiles perfectly now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for accepting our solution. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.
Thanks & Regards,
Santosh

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page