<?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: aCC 6.29 possible defect in compiler   /opt/gnustl/include/bits/cpp_type_traits.h in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-6-29-possible-defect-in-compiler-opt-gnustl-include-bits-cpp/m-p/7231014#M948969</link>
    <description>&lt;P&gt;We are using the HP aC++/HP ANSI C A.06.29 compiler, on HP-UX 11.31 on IA64.&lt;/P&gt;&lt;P&gt;I apologize for not knowing best place to post my question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Dec 2024 14:07:35 GMT</pubDate>
    <dc:creator>JEsker</dc:creator>
    <dc:date>2024-12-09T14:07:35Z</dc:date>
    <item>
      <title>aCC 6.29 possible defect in compiler   /opt/gnustl/include/bits/cpp_type_traits.h</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-6-29-possible-defect-in-compiler-opt-gnustl-include-bits-cpp/m-p/7230894#M948967</link>
      <description>&lt;P&gt;We are trying to build the ICU Unicode package, whcih requires support for C++11.&amp;nbsp; We have aCC 6.29 with patch PHSS_44416 installed to enable gnustl usage.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;======== Rebuilding "stubdata.o" ========&lt;BR /&gt;aCC -DU_ATTRIBUTE_DEPRECATED= -D_REENTRANT -D_THREAD_SAFE -DU_HAVE_ELF_H=1 -DU_HAVE_STRTOD_L=0 -DU_HAVE_LIB_SUFFIX=1 -DU_LIB_SUFFIX_C_NAME=_ratl -I../common -O +DD64 &lt;U&gt;&lt;STRONG&gt;+std=c++11 +stl=gnu&lt;/STRONG&gt;&lt;/U&gt; +W612 -DATRIA_CXX_11 -mt -Wc,-ansi_for_scope,on +W740 +W749 +W823 +W4232 -c +Z -o stubdata.o stubdata.cpp&lt;BR /&gt;"/vobs/sys_tools/HPUX11_IA64/aCC6.29_cc11.31&lt;U&gt;&lt;STRONG&gt;/opt/gnustl/include/bits/cpp_type_traits.h&lt;/STRONG&gt;"&lt;/U&gt;, line 99: error #2029: expected an expression&lt;BR /&gt;enum { __value = bool(_Sp::__value) || bool(_Tp::__value) };&lt;/P&gt;&lt;P&gt;The compiler throws an error on definitions in its own header files.&amp;nbsp; This same construct in the ICU code compiles fine on Solaris, AIX using their native compilers, and LInux using gcc. This does not appear to be an issue with the header file being out of date, I compared to the same header file in Solaris which is several years newer, but the code in question is identical.&amp;nbsp; &amp;nbsp;This seems like a bug in the compiler to me.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 06:01:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-6-29-possible-defect-in-compiler-opt-gnustl-include-bits-cpp/m-p/7230894#M948967</guid>
      <dc:creator>JEsker</dc:creator>
      <dc:date>2024-12-10T06:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: aCC 6.29 possible defect in compiler   /opt/gnustl/include/bits/cpp_type_traits.h</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-6-29-possible-defect-in-compiler-opt-gnustl-include-bits-cpp/m-p/7230994#M948968</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/2140580"&gt;@JEsker&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thank you for posting.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please let us know which HPE product you are referring to? So we can move to the correct board.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 08:51:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-6-29-possible-defect-in-compiler-opt-gnustl-include-bits-cpp/m-p/7230994#M948968</guid>
      <dc:creator>Sunitha_Mod</dc:creator>
      <dc:date>2024-12-09T08:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: aCC 6.29 possible defect in compiler   /opt/gnustl/include/bits/cpp_type_traits.h</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-6-29-possible-defect-in-compiler-opt-gnustl-include-bits-cpp/m-p/7231014#M948969</link>
      <description>&lt;P&gt;We are using the HP aC++/HP ANSI C A.06.29 compiler, on HP-UX 11.31 on IA64.&lt;/P&gt;&lt;P&gt;I apologize for not knowing best place to post my question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 14:07:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-6-29-possible-defect-in-compiler-opt-gnustl-include-bits-cpp/m-p/7231014#M948969</guid>
      <dc:creator>JEsker</dc:creator>
      <dc:date>2024-12-09T14:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: aCC 6.29 possible defect in compiler   /opt/gnustl/include/bits/cpp_type_traits.h</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-6-29-possible-defect-in-compiler-opt-gnustl-include-bits-cpp/m-p/7231336#M948976</link>
      <description>&lt;P&gt;Using same compiler, comparing both the header trace (-H)&amp;nbsp; and the pre-processed code (-E) for two different sources (in different bodies of code),&lt;BR /&gt;I have this observation.&lt;BR /&gt;In the code where we get this error:&lt;BR /&gt;&lt;BR /&gt;"/vobs/sys_tools/HPUX11_IA64/aCC6.29_cc11.31/opt/gnustl/include/bits/cpp_type_traits.h", line 99: error #2029: expected an expression&lt;BR /&gt;enum { __value = bool(_Sp::__value) || bool(_Tp::__value) };&lt;BR /&gt;^&lt;BR /&gt;The preprocessed code shows this:&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;namespace __gnu_cxx&lt;BR /&gt;{&lt;BR /&gt;template&amp;lt;typename _Iterator, typename _Container&amp;gt;&lt;BR /&gt;class __normal_iterator;&lt;BR /&gt;}&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;namespace std&lt;BR /&gt;{&lt;BR /&gt;struct __true_type { };&lt;BR /&gt;struct __false_type { };&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;template&amp;lt;&lt;STRONG&gt;_Bool&lt;/STRONG&gt;&amp;gt;&lt;BR /&gt;struct __truth_type&lt;BR /&gt;{ typedef __false_type __type; };&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;template&amp;lt;&amp;gt;&lt;BR /&gt;struct __truth_type&amp;lt;1&amp;gt;&lt;BR /&gt;{ typedef __true_type __type; };&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;template&amp;lt;class _Sp, class _Tp&amp;gt;&lt;BR /&gt;struct __traitor&lt;BR /&gt;{&lt;BR /&gt;&lt;STRONG&gt;enum { __value = _Bool(_Sp::__value) || _Bool(_Tp::__value) };&lt;/STRONG&gt;&lt;BR /&gt;typedef typename __truth_type&amp;lt;__value&amp;gt;::__type __type;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;In a different source, which compiles without that error, the preprocessed code looks like this:&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;namespace __gnu_cxx&lt;BR /&gt;{&lt;BR /&gt;template&amp;lt;typename _Iterator, typename _Container&amp;gt;&lt;BR /&gt;class __normal_iterator;&lt;BR /&gt;}&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;namespace std&lt;BR /&gt;{&lt;BR /&gt;struct __true_type { };&lt;BR /&gt;struct __false_type { };&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;template&amp;lt;&lt;STRONG&gt;bool&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;struct __truth_type&lt;BR /&gt;{ typedef __false_type __type; };&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;template&amp;lt;&amp;gt;&lt;BR /&gt;struct __truth_type&amp;lt;true&amp;gt;&lt;BR /&gt;{ typedef __true_type __type; };&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;template&amp;lt;class _Sp, class _Tp&amp;gt;&lt;BR /&gt;struct __traitor&lt;BR /&gt;{&lt;BR /&gt;&lt;STRONG&gt;enum { __value = bool(_Sp::__value) || bool(_Tp::__value) };&lt;/STRONG&gt;&lt;BR /&gt;typedef typename __truth_type&amp;lt;__value&amp;gt;::__type __type;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Because they are in completely different bodies of code, the header file traces are substantially different, but the&lt;BR /&gt;one possibly relevant observation I found is that &lt;STRONG&gt;in the case which generates the error, stdbool.h has been included before cpp_type_traits.h&lt;/STRONG&gt;&lt;BR /&gt;while in the case that compiles without error, stdbool.h has not been included.&lt;/P&gt;&lt;P&gt;To further test this observation, I modified that other source to specifically include stdbool.h before including &amp;lt;memory&amp;gt;.&lt;BR /&gt;And, now that module also gets the compilation error, and I see another instance of same error, on a line of code also involving bool, and also in a header file in the compiler installation&lt;/P&gt;&lt;P&gt;"/vobs/sys_tools/HPUX11_IA64/aCC6.29_cc11.31&lt;STRONG&gt;/opt/gnustl/include/ostream", line 429: error #2029: expected an expression&lt;/STRONG&gt;&lt;BR /&gt;if (bool(_M_os.flags() &amp;amp; ios_base::unitbuf) &amp;amp;&amp;amp; !uncaught_exception())&lt;/P&gt;&lt;P&gt;And further confirmed in preprocessed code that _Bool is&amp;nbsp; generated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 18:31:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-6-29-possible-defect-in-compiler-opt-gnustl-include-bits-cpp/m-p/7231336#M948976</guid>
      <dc:creator>JEsker</dc:creator>
      <dc:date>2024-12-12T18:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: aCC 6.29 possible defect in compiler   /opt/gnustl/include/bits/cpp_type_traits.h</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-6-29-possible-defect-in-compiler-opt-gnustl-include-bits-cpp/m-p/7231356#M948977</link>
      <description>&lt;P dir="auto" style="margin: 0;"&gt;Hello JEsker,&lt;/P&gt;
&lt;P dir="auto" style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P dir="auto" style="margin: 0;"&gt;It may need further checking , probably require the involvement of Product Engineering team .&amp;nbsp;&lt;/P&gt;
&lt;P dir="auto" style="margin: 0;"&gt;Requesting you to contact HPE Support Center and raise a ticket to get it checked further .&lt;/P&gt;
&lt;P dir="auto" style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P dir="auto" style="margin: 0;"&gt;I work for HPE/ I am an HPE Employee (HPE Community)&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 07:23:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-6-29-possible-defect-in-compiler-opt-gnustl-include-bits-cpp/m-p/7231356#M948977</guid>
      <dc:creator>georgek_1</dc:creator>
      <dc:date>2024-12-13T07:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: aCC 6.29 possible defect in compiler   /opt/gnustl/include/bits/cpp_type_traits.h</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-6-29-possible-defect-in-compiler-opt-gnustl-include-bits-cpp/m-p/7231394#M948978</link>
      <description>&lt;P&gt;Unfortunately, I am not able to open a ticket.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 22:25:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-6-29-possible-defect-in-compiler-opt-gnustl-include-bits-cpp/m-p/7231394#M948978</guid>
      <dc:creator>JEsker</dc:creator>
      <dc:date>2024-12-13T22:25:24Z</dc:date>
    </item>
  </channel>
</rss>

