Skip to content
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

Intel OneAPI compile problems #1845

Open
VictorEijkhout opened this issue Dec 20, 2024 · 1 comment
Open

Intel OneAPI compile problems #1845

VictorEijkhout opened this issue Dec 20, 2024 · 1 comment

Comments

@VictorEijkhout
Copy link

I just got Intel 2025 Here's what it reports

/work2/00434/eijkhout/rangev3/rangev3-0.12.0/test/config.cpp:14:66: error: no previous prototype for function 'foo' [-Werror,-Wmissing-prototypes]
   14 | RANGES_DEPRECATED("compile test for \"RANGES_DEPRECATED\"") void foo() {}
      |                                                                  ^

(I already reported this in a ticket a year ago: #1778 )

/work2/00434/eijkhout/rangev3/rangev3-0.12.0/include/meta/meta.hpp:3779:24: error: identifier '_z' preceded by whitespace in a literal operator declaration is deprecated [-Werror,-Wdeprecated-literal-operator]
 3779 |             operator"" _z()
      |             ~~~~~~~~~~~^~
      |             operator""_z

and

In file included from /work2/00434/eijkhout/rangev3/rangev3-0.12.0/test/constexpr_core.cpp:16:
In file included from /work2/00434/eijkhout/rangev3/rangev3-0.12.0/include/range/v3/range/access.hpp:34:
In file included from /work2/00434/eijkhout/rangev3/rangev3-0.12.0/include/range/v3/range_fwd.hpp:20:
/work2/00434/eijkhout/rangev3/rangev3-0.12.0/include/meta/meta.hpp:2281:63: error: unsafe pointer arithmetic [-Werror,-Wunsafe-buffer-usage]
 2281 |                                  : *first ? N : find_index_i_(first + 1, last, N + 1);
      |

All of this can be solved, read: hacked, if I cna turn of -Werror. Can I?

@VictorEijkhout
Copy link
Author

Hey.....

-D RANGES_ENABLE_WERROR=OFF

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant