<?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:DPC++ Compile failed on std::make_shared when apply to class with virtual function in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-Compile-failed-on-std-make-shared-when-apply-to-class-with/m-p/1518962#M3250</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for posting in Intel Communities.&lt;/P&gt;&lt;P&gt;Based on our internal discussion about creating a priority ticket if needed, I am going ahead and closing this case for now.&lt;/P&gt;&lt;P&gt;Please feel free to contact us further if you need any assistance from our side.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vankudothu Vaishnavi.&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 30 Aug 2023 07:17:53 GMT</pubDate>
    <dc:creator>VaishnaviV_Intel</dc:creator>
    <dc:date>2023-08-30T07:17:53Z</dc:date>
    <item>
      <title>DPC++ Compile failed on std::make_shared when apply to class with virtual function</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-Compile-failed-on-std-make-shared-when-apply-to-class-with/m-p/1518017#M3242</link>
      <description>&lt;DIV&gt;#include &amp;lt;CL/sycl.hpp&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;#include &amp;lt;iostream&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;#include &amp;lt;memory&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;class A {&lt;/DIV&gt;&lt;DIV&gt;public:&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;int v = 0;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;virtual void func() {};&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;};&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;class B : public A {&lt;/DIV&gt;&lt;DIV&gt;public:&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;virtual void func() override {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;std::cout &amp;lt;&amp;lt; 1 &amp;lt;&amp;lt; std::endl;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;std::cout &amp;lt;&amp;lt; this &amp;lt;&amp;lt; std::endl;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;std::cout &amp;lt;&amp;lt; reinterpret_cast&amp;lt;unsigned int&amp;gt;(this) &amp;lt;&amp;lt; std::endl;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;};&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;class C : public A {&lt;/DIV&gt;&lt;DIV&gt;public:&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;virtual void func() override {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;std::cout &amp;lt;&amp;lt; 2 &amp;lt;&amp;lt; std::endl;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;std::cout &amp;lt;&amp;lt; this &amp;lt;&amp;lt; std::endl;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;std::cout &amp;lt;&amp;lt; reinterpret_cast&amp;lt;unsigned int&amp;gt;(this) &amp;lt;&amp;lt; std::endl;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;};&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;int main()&lt;/DIV&gt;&lt;DIV&gt;{&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;//auto ptr = std::make_shared&amp;lt;B&amp;gt;();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;std::shared_ptr&amp;lt;A&amp;gt; ptr = std::make_shared&amp;lt;B&amp;gt;();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;std::shared_ptr&amp;lt;A&amp;gt; ptr2 = std::make_shared&amp;lt;C&amp;gt;();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/*auto ptr = std::make_shared&amp;lt;B&amp;gt;();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;auto ptr2 = std::make_shared&amp;lt;C&amp;gt;();*/&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;std::cout &amp;lt;&amp;lt; reinterpret_cast&amp;lt;unsigned int&amp;gt;(ptr.get()) &amp;lt;&amp;lt; std::endl;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ptr-&amp;gt;func();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;std::cout &amp;lt;&amp;lt; reinterpret_cast&amp;lt;unsigned int&amp;gt;(ptr2.get()) &amp;lt;&amp;lt; std::endl;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ptr2-&amp;gt;func();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return 0;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;code above can be compiled by using other c++ compiler,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;I use DPC++ 2023 +vs2022&lt;/DIV&gt;&lt;DIV&gt;however DPC++2022 +vs2019 is ok&lt;/DIV&gt;</description>
      <pubDate>Sun, 27 Aug 2023 03:54:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-Compile-failed-on-std-make-shared-when-apply-to-class-with/m-p/1518017#M3242</guid>
      <dc:creator>shenuo</dc:creator>
      <dc:date>2023-08-27T03:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: DPC++ Compile failed on std::make_shared when apply to class with virtual function</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-Compile-failed-on-std-make-shared-when-apply-to-class-with/m-p/1518018#M3243</link>
      <description>&lt;P&gt;I'm sorry .&lt;/P&gt;&lt;DIV&gt;code above CAN&amp;nbsp; NOT be compiled by using other c++ compiler, return error: error: 14;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;I use DPC++ 2023 +vs2022&lt;/DIV&gt;&lt;DIV&gt;however, DPC++2022 +vs2019 is ok&lt;/DIV&gt;</description>
      <pubDate>Sun, 27 Aug 2023 03:57:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-Compile-failed-on-std-make-shared-when-apply-to-class-with/m-p/1518018#M3243</guid>
      <dc:creator>shenuo</dc:creator>
      <dc:date>2023-08-27T03:57:53Z</dc:date>
    </item>
    <item>
      <title>Re:DPC++ Compile failed on std::make_shared when apply to class with virtual function</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-Compile-failed-on-std-make-shared-when-apply-to-class-with/m-p/1518962#M3250</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for posting in Intel Communities.&lt;/P&gt;&lt;P&gt;Based on our internal discussion about creating a priority ticket if needed, I am going ahead and closing this case for now.&lt;/P&gt;&lt;P&gt;Please feel free to contact us further if you need any assistance from our side.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vankudothu Vaishnavi.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Aug 2023 07:17:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-Compile-failed-on-std-make-shared-when-apply-to-class-with/m-p/1518962#M3250</guid>
      <dc:creator>VaishnaviV_Intel</dc:creator>
      <dc:date>2023-08-30T07:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Re:DPC++ Compile failed on std::make_shared when apply to class with virtual function</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-Compile-failed-on-std-make-shared-when-apply-to-class-with/m-p/1519217#M3251</link>
      <description>&lt;P&gt;I’m sorry, seems you didn't solve this problem ,why close it?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 01:28:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-Compile-failed-on-std-make-shared-when-apply-to-class-with/m-p/1519217#M3251</guid>
      <dc:creator>shenuo</dc:creator>
      <dc:date>2023-08-31T01:28:41Z</dc:date>
    </item>
  </channel>
</rss>

