-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile Errors with ICC #1748
Comments
Those macros are quite tricky and ask the preprocessor to do a lot of heavy listing -- can you post what it preprocesses into on your machine? |
I tried and can't seem to get it to dump only the preprocessor output.... I may just be doing it wrong, not super familiar with only preprocessoring ;)
|
Should I comment out the code at 316 which looks like you guys are manually playing with features? |
Bueller? |
Sorry, I skimmed the notification in my inbox, only saw this part
and placed this issue deep into the backlog. I am kinda surprised that CMake does not know ICC, but yes, you can delete the part that sets compilation features, as long as you enable C++11 or newer for the compilation manually. Also @JoeyGrajciar do you have ideas based on the error message? |
Never saw that error message, but tried it in Compiler Explorer with ICC 19.0.1 and reproduced the issue. Checked preprocessor output for both ICC 19.0.1 and gcc 9.2 and except for name generated with number it is exactly the same. Also correct instance of overloaded function |
I still hold a premium support contract with my purchase of ICC. If we determine this is indeed a compiler bug I can open an issue with their R&D if desired. Appreciate the help. |
So today I found the issue and we can provide a workaround. It definitely is compiler issue it can be seen here https://godbolt.org/z/RxsLQR
and
Strangely enough other trailing return types with Feel free to open issue with ICC R&D, so they can fix it and it does not occur in the future :) |
Logged Intel Case #04388242. Pointed them here and to the CompilerExplorer links. I'll update as the case progresses. Thanks everyone! |
- Avoid bug when compiling with intel (catchorg/Catch2#1748)
- Avoid bug when compiling with intel (catchorg/Catch2#1748) Co-authored-by: Blanco Alonso Jorge <[email protected]>
Cannot compile Catch2 with Intel ICC. Compile errors below. I am able to use the single header in my project but I cannot compile the SelfTests.
I'm trying to open a bug report from a different project that crashes the compiler, but that project's Unit Tests require Catch2 and it can't compile in their codebase in order for me to point Intel at a reproducible bug. Appreciate any help.
icc version 19.0.4.243 (gcc version 8.3.0 compatibility)
icpc version 19.0.4.243 (gcc version 8.3.0 compatibility)
4.14.61-gentoo x86_64 Intel(R) Core(TM) i7-8700K
Glibc 2.29
The text was updated successfully, but these errors were encountered: