<?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 aCC A.03.57 compiler problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-a-03-57-compiler-problem/m-p/3405387#M706469</link>
    <description>Here is a small code that demonstrates what I believe is a compiler bug. Please confirm. This  code compiles successfully with the A.03.56 compiler. Please copy-paste it to the file aCC357Bug.cpp and compile using "aCC -c -o aCC357Bug.o aCC357Bug.cpp". The error that I am getting is:&lt;BR /&gt;Error 698: Exact position unknown; near ["aCC357Bug.cpp", line 32]. #&lt;BR /&gt;The declarations "void *ns2::__catchTp_v[5]" and "void&lt;BR /&gt;*ns1::__catchTp_v[5]" are both visible and neither is&lt;BR /&gt;   preferred under the name lookup rules.&lt;BR /&gt;&lt;BR /&gt;#include &lt;STRING&gt;&lt;BR /&gt;&lt;BR /&gt;namespace ns1&lt;BR /&gt;{&lt;BR /&gt;    class A&lt;BR /&gt;    {&lt;BR /&gt;    public:&lt;BR /&gt;        string a[1];&lt;BR /&gt;        A()&lt;BR /&gt;        {&lt;BR /&gt;        }&lt;BR /&gt;    };&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;namespace ns2&lt;BR /&gt;{&lt;BR /&gt;    class B&lt;BR /&gt;    {&lt;BR /&gt;    public:&lt;BR /&gt;        B();&lt;BR /&gt;    };&lt;BR /&gt;&lt;BR /&gt;    B::B()&lt;BR /&gt;    {&lt;BR /&gt;        string b[1];&lt;BR /&gt;    }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;using namespace ns1;&lt;BR /&gt;using namespace ns2;&lt;BR /&gt;&lt;BR /&gt;void f()&lt;BR /&gt;{&lt;BR /&gt;    try&lt;BR /&gt;    {&lt;BR /&gt;    }&lt;BR /&gt;    catch (...)&lt;BR /&gt;    {&lt;BR /&gt;    }&lt;BR /&gt;}&lt;BR /&gt;&lt;/STRING&gt;</description>
    <pubDate>Thu, 21 Oct 2004 15:21:20 GMT</pubDate>
    <dc:creator>Anatoly Pidruchny</dc:creator>
    <dc:date>2004-10-21T15:21:20Z</dc:date>
    <item>
      <title>aCC A.03.57 compiler problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-a-03-57-compiler-problem/m-p/3405387#M706469</link>
      <description>Here is a small code that demonstrates what I believe is a compiler bug. Please confirm. This  code compiles successfully with the A.03.56 compiler. Please copy-paste it to the file aCC357Bug.cpp and compile using "aCC -c -o aCC357Bug.o aCC357Bug.cpp". The error that I am getting is:&lt;BR /&gt;Error 698: Exact position unknown; near ["aCC357Bug.cpp", line 32]. #&lt;BR /&gt;The declarations "void *ns2::__catchTp_v[5]" and "void&lt;BR /&gt;*ns1::__catchTp_v[5]" are both visible and neither is&lt;BR /&gt;   preferred under the name lookup rules.&lt;BR /&gt;&lt;BR /&gt;#include &lt;STRING&gt;&lt;BR /&gt;&lt;BR /&gt;namespace ns1&lt;BR /&gt;{&lt;BR /&gt;    class A&lt;BR /&gt;    {&lt;BR /&gt;    public:&lt;BR /&gt;        string a[1];&lt;BR /&gt;        A()&lt;BR /&gt;        {&lt;BR /&gt;        }&lt;BR /&gt;    };&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;namespace ns2&lt;BR /&gt;{&lt;BR /&gt;    class B&lt;BR /&gt;    {&lt;BR /&gt;    public:&lt;BR /&gt;        B();&lt;BR /&gt;    };&lt;BR /&gt;&lt;BR /&gt;    B::B()&lt;BR /&gt;    {&lt;BR /&gt;        string b[1];&lt;BR /&gt;    }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;using namespace ns1;&lt;BR /&gt;using namespace ns2;&lt;BR /&gt;&lt;BR /&gt;void f()&lt;BR /&gt;{&lt;BR /&gt;    try&lt;BR /&gt;    {&lt;BR /&gt;    }&lt;BR /&gt;    catch (...)&lt;BR /&gt;    {&lt;BR /&gt;    }&lt;BR /&gt;}&lt;BR /&gt;&lt;/STRING&gt;</description>
      <pubDate>Thu, 21 Oct 2004 15:21:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-a-03-57-compiler-problem/m-p/3405387#M706469</guid>
      <dc:creator>Anatoly Pidruchny</dc:creator>
      <dc:date>2004-10-21T15:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: aCC A.03.57 compiler problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-a-03-57-compiler-problem/m-p/3405388#M706470</link>
      <description>This looks very similar to a recently filed defect against aCC A.03.57.&lt;BR /&gt;I will pass on the test case.&lt;BR /&gt;&lt;BR /&gt;You can work around the error for now by adding&lt;BR /&gt;these lines before the '#include &lt;STRING&gt;' line.&lt;BR /&gt;&lt;BR /&gt;namespace ns1 {} using namespace ns1;&lt;BR /&gt;namespace ns2 {} using namespace ns2;&lt;BR /&gt;&lt;/STRING&gt;</description>
      <pubDate>Fri, 22 Oct 2004 14:12:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-a-03-57-compiler-problem/m-p/3405388#M706470</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2004-10-22T14:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: aCC A.03.57 compiler problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-a-03-57-compiler-problem/m-p/3405389#M706471</link>
      <description>Mike, thank you very much for answering and passing on this test case. The work around works fine.</description>
      <pubDate>Mon, 25 Oct 2004 08:20:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-a-03-57-compiler-problem/m-p/3405389#M706471</guid>
      <dc:creator>Anatoly Pidruchny</dc:creator>
      <dc:date>2004-10-25T08:20:50Z</dc:date>
    </item>
  </channel>
</rss>

