Skip to content

Intel OneAPI compile problems #1845

@VictorEijkhout

Description

@VictorEijkhout

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions