Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 70445 invoked from network); 12 Sep 2007 23:29:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Sep 2007 23:29:55 -0000 Received: (qmail 4667 invoked by uid 500); 12 Sep 2007 23:29:49 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 4646 invoked by uid 500); 12 Sep 2007 23:29:49 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 4635 invoked by uid 99); 12 Sep 2007 23:29:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Sep 2007 16:29:49 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Sep 2007 23:31:32 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4BEBC71417D for ; Wed, 12 Sep 2007 16:29:32 -0700 (PDT) Message-ID: <28450083.1189639772308.JavaMail.jira@brutus> Date: Wed, 12 Sep 2007 16:29:32 -0700 (PDT) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Commented: (STDCXX-551) [Sun C++ 5.9/x86_64] ube assertion In-Reply-To: <26160832.1189628612553.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STDCXX-551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12526940 ] Martin Sebor commented on STDCXX-551: ------------------------------------- Adding a copy ctor to class B::C works around the problem: $ diff -u t.cpp.~0~ t.cpp --- t.cpp.~0~ Wed Sep 12 17:27:21 2007 +++ t.cpp Wed Sep 12 17:26:40 2007 @@ -4,6 +4,7 @@ struct C { int *x_; int y_; + C (const C &c): x_ (c.x_), y_ (c.y_) { } C (int *x = 0, int y = 0): x_ (x), y_ (y) { } }; struct D: C, A { D (int *x = 0, int y = 0): C (x, y) { } }; > [Sun C++ 5.9/x86_64] ube assertion > ---------------------------------- > > Key: STDCXX-551 > URL: https://issues.apache.org/jira/browse/STDCXX-551 > Project: C++ Standard Library > Issue Type: Bug > Components: External > Environment: Sun C++ 5.9/x86_64 > Reporter: Martin Sebor > > -------- Original Message -------- > Subject: Your Report (Review ID: 1065078) - Sun C++ 5.9/x86 assertion in ube > Date: Wed, 12 Sep 2007 14:07:41 -0600 (MDT) > From: IncidentDaemon@sun.com > To: sebor@roguewave.com > Dear Sun Studio Developer, > Thank you for your interest in improving the quality of Sun Studio > product. > Your report has been assigned an internal review ID of 1065078. > Please be aware that the large volume of reports we receive sometimes > prevents us from responding individually to each message. > If the information is determined to be a new Bug or Request for > Enhancement (RFE), or a duplicate of a known Bug or RFE, you will > receive a followup email containing a seven digit bug number. By > using this seven digit bug number, you may search for, view, or vote > for this bug in the Bug Database at http://bugs.sun.com/. Please note > that we cannot promise to fix all reported bugs. > If you just reported an issue that could have a major impact on your > project and require a timely response, please consider purchasing > one of the support offerings described at > http://developers.sun.com/prodtech/cc/support/support_services.jsp. > The Sun Developer Network (http://developers.sun.com) is a free service > that Sun offers. To join, visit http://developers.sun.com/global/join_sdn.html. > Regards, > Sun Studio Developer Bug Report Review Team > --------------------------------------------------------------- > Date Created: Wed Sep 12 14:07:38 MDT 2007 > Type: bug > Customer Name: Martin Sebor > Customer Email: sebor@roguewave.com > SDN ID: > status: Waiting > Category: c++ > Subcategory: other > Company: Rogue Wave Software > release: studio12 > hardware: x64 > OSversion: solaris_10 > priority: 4 > Synopsis: Sun C++ 5.9/x86 assertion in ube > Description: > FULL PRODUCT VERSION : > ADDITIONAL OS VERSION INFORMATION : > SunOS 5.10 i386 > A DESCRIPTION OF THE PROBLEM : > The ube optimizer fails with an assertion on the attached test case. > REGRESSION. Last worked in version studio11 > STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : > Compile the attached test case as follows: > CC -O -V -m64 t.cpp > EXPECTED VERSUS ACTUAL BEHAVIOR : > EXPECTED - > No error. > ACTUAL - > CC: Sun C++ 5.9 SunOS_i386 2007/05/03 > ir2hf: Sun Compiler Common 12 SunOS_i386 2007/05/03 > ube: Sun Compiler Common 12 SunOS_i386 2007/05/03 > "t.cpp", [__1cBBDfoo6Mn0ABD__v_]:ube: error: Assert has been violated at '/set/mars/builds.intel-S2/nightly.Thu/intel-S2/lang/ube/machine/src/abi_call.c 172'. > ERROR MESSAGES/STACK TRACES THAT OCCUR : > "t.cpp", [__1cBBDfoo6Mn0ABD__v_]:ube: error: Assert has been violated at '/set/mars/builds.intel-S2/nightly.Thu/intel-S2/lang/ube/machine/src/abi_call.c 172'. > REPRODUCIBILITY : > This bug can be reproduced always. > ---------- BEGIN SOURCE ---------- > struct A { }; > struct B { > struct C { > int *x_; > int y_; > C (int *x = 0, int y = 0): x_ (x), y_ (y) { } > }; > struct D: C, A { D (int *x = 0, int y = 0): C (x, y) { } }; > void foo (D); > }; > void B::foo (D) { } > int main () { > B vb; > vb.foo (B::D ()); > } > ---------- END SOURCE ---------- > workaround: > comments: (company - Rogue Wave Software , email - sebor@roguewave.com) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.