<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re:icpx `std::views::zip` compile error in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icpx-std-views-zip-compile-error/m-p/1583770#M3563</link>
    <description>&lt;P&gt;&lt;EM style="font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, &amp;quot;Fira Sans&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 14px;"&gt;This issue has been resolved and we will no longer respond to this thread.&amp;nbsp;If you require additional assistance from Intel, please start a new thread.&amp;nbsp;Any further interaction in this thread will be considered community only.&lt;/EM&gt;&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 27 Mar 2024 06:07:14 GMT</pubDate>
    <dc:creator>Mayur_P_Intel</dc:creator>
    <dc:date>2024-03-27T06:07:14Z</dc:date>
    <item>
      <title>icpx `std::views::zip` compile error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icpx-std-views-zip-compile-error/m-p/1577247#M3533</link>
      <description>&lt;P&gt;Hello, when compiling this source code:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;#include &amp;lt;algorithm&amp;gt;
#include &amp;lt;execution&amp;gt;
#include &amp;lt;ranges&amp;gt;
#include &amp;lt;utility&amp;gt;
#include &amp;lt;vector&amp;gt;

int main(int argc, char** argv)
{
    const auto input = std::vector&amp;lt;int&amp;gt;(100);

    auto output_a = std::vector&amp;lt;int&amp;gt;(input.size());
    auto output_b = std::vector&amp;lt;int&amp;gt;(input.size());

    auto zipped = std::views::zip(output_a, output_b);

    std::transform(std::execution::par_unseq,
                   input.begin(),
                   input.end(),
                   zipped.begin(),
                   [](auto) -&amp;gt; std::pair&amp;lt;int, int&amp;gt;
                   {
                       return {};
                   });

    return 0;
}&lt;/LI-CODE&gt;&lt;P&gt;with:&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;icpx -std=c++23 -qtbb test.cpp -o test&lt;/LI-CODE&gt;&lt;P&gt;I get:&lt;/P&gt;&lt;LI-CODE lang="none"&gt;In file included from test.cpp:3:
/usr/lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/ranges:4558:14: error: type constraint differs in template redeclaration
 4558 |     template&amp;lt;copy_constructible _Fp, input_range... _Ws&amp;gt;
      |              ^
/usr/lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/ranges:4458:14: note: in instantiation of template class 'std::ranges::zip_view&amp;lt;std::ranges::ref_view&amp;lt;std::vector&amp;lt;int&amp;gt;&amp;gt;, std::ranges::ref_view&amp;lt;std::vector&amp;lt;int&amp;gt;&amp;gt;&amp;gt;::_Iterator&amp;lt;true&amp;gt;' requested here
 4458 |     { return _Iterator&amp;lt;true&amp;gt;(__detail::__tuple_transform(ranges::begin, _M_views)); }
      |              ^
test.cpp:19:27: note: in instantiation of member function 'std::ranges::zip_view&amp;lt;std::ranges::ref_view&amp;lt;std::vector&amp;lt;int&amp;gt;&amp;gt;, std::ranges::ref_view&amp;lt;std::vector&amp;lt;int&amp;gt;&amp;gt;&amp;gt;::begin' requested here
   19 |                    zipped.begin(),
      |                           ^
/usr/lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/ranges:4829:12: note: previous template declaration is here
 4829 |   template&amp;lt;copy_constructible _Fp, input_range... _Vs&amp;gt;
      |            ^
/usr/lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/ranges:4558:14: error: type constraint differs in template redeclaration
 4558 |     template&amp;lt;copy_constructible _Fp, input_range... _Ws&amp;gt;
      |              ^
/usr/lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/ranges:4458:30: note: in instantiation of template class 'std::ranges::zip_view&amp;lt;std::ranges::ref_view&amp;lt;std::vector&amp;lt;int&amp;gt;&amp;gt;, std::ranges::ref_view&amp;lt;std::vector&amp;lt;int&amp;gt;&amp;gt;&amp;gt;::_Iterator&amp;lt;false&amp;gt;' requested here
 4458 |     { return _Iterator&amp;lt;true&amp;gt;(__detail::__tuple_transform(ranges::begin, _M_views)); }
      |                              ^
test.cpp:19:27: note: in instantiation of member function 'std::ranges::zip_view&amp;lt;std::ranges::ref_view&amp;lt;std::vector&amp;lt;int&amp;gt;&amp;gt;, std::ranges::ref_view&amp;lt;std::vector&amp;lt;int&amp;gt;&amp;gt;&amp;gt;::begin' requested here
   19 |                    zipped.begin(),
      |                           ^
/usr/lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/ranges:4829:12: note: previous template declaration is here
 4829 |   template&amp;lt;copy_constructible _Fp, input_range... _Vs&amp;gt;
      |            ^
2 errors generated.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;When compiling with:&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;g++ -std=c++23 -ltbb test.cpp -o test&lt;/LI-CODE&gt;&lt;P&gt;the compilation is successful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;[fackop@PPpc-main PPtrading]$ g++ --version
g++ (GCC) 13.2.1 20230801
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[fackop@PPpc-main PPtrading]$ icpx --version
Intel(R) oneAPI DPC++/C++ Compiler 2024.0.2 (2024.0.2.20231213)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/intel/oneapi/compiler/2024.0/bin/compiler
Configuration file: /opt/intel/oneapi/compiler/2024.0/bin/compiler/../icpx.cfg&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this a bug? Thank you in advance for any help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Peter Fačko&lt;/P&gt;</description>
      <pubDate>Sat, 02 Mar 2024 21:46:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icpx-std-views-zip-compile-error/m-p/1577247#M3533</guid>
      <dc:creator>PeterFačko</dc:creator>
      <dc:date>2024-03-02T21:46:24Z</dc:date>
    </item>
    <item>
      <title>Re:icpx `std::views::zip` compile error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icpx-std-views-zip-compile-error/m-p/1578517#M3538</link>
      <description>&lt;P&gt;Hi Peter, we would like to inform you that we are routing your query to the dedicated team for further assistance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Mar 2024 13:03:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icpx-std-views-zip-compile-error/m-p/1578517#M3538</guid>
      <dc:creator>Vipin_S_Intel</dc:creator>
      <dc:date>2024-03-07T13:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Re:icpx `std::views::zip` compile error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icpx-std-views-zip-compile-error/m-p/1579729#M3542</link>
      <description>&lt;P&gt;Hi, is there any update on this?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 08:16:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icpx-std-views-zip-compile-error/m-p/1579729#M3542</guid>
      <dc:creator>PeterFačko</dc:creator>
      <dc:date>2024-03-12T08:16:03Z</dc:date>
    </item>
    <item>
      <title>Re:icpx `std::views::zip` compile error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icpx-std-views-zip-compile-error/m-p/1579756#M3543</link>
      <description>&lt;P&gt;Hi Peter, we have been able to reproduce the issue and have raised it with the developer team.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Mar 2024 10:22:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icpx-std-views-zip-compile-error/m-p/1579756#M3543</guid>
      <dc:creator>Mayur_P_Intel</dc:creator>
      <dc:date>2024-03-12T10:22:47Z</dc:date>
    </item>
    <item>
      <title>Re:icpx `std::views::zip` compile error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icpx-std-views-zip-compile-error/m-p/1580839#M3548</link>
      <description>&lt;P&gt;To get this to work we need newer library&amp;nbsp;that has this change: &lt;A href="https://github.com/gcc-mirror/gcc/commit/be34a8b538c0f04b11a428bd1a9340eb19dec13f" target="_blank"&gt;https://github.com/gcc-mirror/gcc/commit/be34a8b538c0f04b11a428bd1a9340eb19dec13f&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;With that library change applied to a preprocessed version of the test case, icpx compiles it okay.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;cp /path-of-ranges-file myinclude&lt;/P&gt;&lt;P&gt;cd myinclude&lt;/P&gt;&lt;P&gt;patch ranges be34a8b538c0f04b11a428bd1a9340eb19dec13f.diff&amp;nbsp;&amp;nbsp;(patch link - &lt;A href="https://github.com/gcc-mirror/gcc/commit/be34a8b538c0f04b11a428bd1a9340eb19dec13f.diff" target="_blank"&gt;https://github.com/gcc-mirror/gcc/commit/be34a8b538c0f04b11a428bd1a9340eb19dec13f.diff&lt;/A&gt; )&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;icpx -Imyinclude -std=c++23 test.cpp&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;-- compiles fine&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Mar 2024 13:59:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icpx-std-views-zip-compile-error/m-p/1580839#M3548</guid>
      <dc:creator>Mayur_P_Intel</dc:creator>
      <dc:date>2024-03-15T13:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Re:icpx `std::views::zip` compile error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icpx-std-views-zip-compile-error/m-p/1582865#M3552</link>
      <description>&lt;P&gt;Dear Mayurp,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sorry for posting off topic but I am unable to post any questions in the forum. When I try to post a question I get this error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"An Unexpected Error has occurred.&lt;BR /&gt;Your request failed. Please contact your system administrator and provide the date and time you received the error and this Exception ID: 558D0528."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please let me know how to fix this and post questions? I would like to post a question about compiling DLLs with oneAPI (specifically, how to ensure that function names are exported properly - sqrt() and some other math functions seem to be interfering with exporting functions) but I can't post questions. Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 23 Mar 2024 10:57:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icpx-std-views-zip-compile-error/m-p/1582865#M3552</guid>
      <dc:creator>arctic_circle</dc:creator>
      <dc:date>2024-03-23T10:57:29Z</dc:date>
    </item>
    <item>
      <title>Re:icpx `std::views::zip` compile error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icpx-std-views-zip-compile-error/m-p/1583769#M3562</link>
      <description>&lt;P&gt;I will ask the relevant team to look into this. &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Mar 2024 06:06:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icpx-std-views-zip-compile-error/m-p/1583769#M3562</guid>
      <dc:creator>Mayur_P_Intel</dc:creator>
      <dc:date>2024-03-27T06:06:48Z</dc:date>
    </item>
    <item>
      <title>Re:icpx `std::views::zip` compile error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icpx-std-views-zip-compile-error/m-p/1583770#M3563</link>
      <description>&lt;P&gt;&lt;EM style="font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, &amp;quot;Fira Sans&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 14px;"&gt;This issue has been resolved and we will no longer respond to this thread.&amp;nbsp;If you require additional assistance from Intel, please start a new thread.&amp;nbsp;Any further interaction in this thread will be considered community only.&lt;/EM&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Mar 2024 06:07:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icpx-std-views-zip-compile-error/m-p/1583770#M3563</guid>
      <dc:creator>Mayur_P_Intel</dc:creator>
      <dc:date>2024-03-27T06:07:14Z</dc:date>
    </item>
  </channel>
</rss>

