Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 21166 invoked from network); 7 Aug 2006 18:39:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Aug 2006 18:39:06 -0000 Received: (qmail 47006 invoked by uid 500); 7 Aug 2006 18:39:06 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 46989 invoked by uid 500); 7 Aug 2006 18:39:06 -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 46978 invoked by uid 99); 7 Aug 2006 18:39:06 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Aug 2006 11:39:06 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Aug 2006 11:39:05 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1793141000C for ; Mon, 7 Aug 2006 18:36:19 +0000 (GMT) Message-ID: <26320378.1154975779093.JavaMail.jira@brutus> Date: Mon, 7 Aug 2006 11:36:19 -0700 (PDT) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Created: (STDCXX-266) [Sun C++] cv-qualifiers of function parameters mangled into function type MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [Sun C++] cv-qualifiers of function parameters mangled into function type ------------------------------------------------------------------------- Key: STDCXX-266 URL: http://issues.apache.org/jira/browse/STDCXX-266 Project: C++ Standard Library Issue Type: Bug Components: External Environment: Sun C++, all versions Reporter: Martin Sebor -------- Original Message -------- Subject: Your Report (Review ID: 769420) - Sun C++ 5.8 cv-qualifiers of function parameters mangled into function type Date: Mon, 7 Aug 2006 12:31:50 -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 769420. 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: Mon Aug 07 12:31:48 MDT 2006 Type: bug Customer Name: Martin Sebor Customer Email: sebor@roguewave.com SDN ID: sebor status: Waiting Category: c++ Subcategory: other Company: Rogue Wave Software release: studio11 hardware: sun4 OSversion: solaris_10 priority: 4 Synopsis: Sun C++ 5.8 cv-qualifiers of function parameters mangled into function type Description: FULL PRODUCT VERSION : N/A ADDITIONAL OS VERSION INFORMATION : Solaris (all versions) A DESCRIPTION OF THE PROBLEM : Sun C++ incorrectly includes cv-qualifier of the types of function parameters in the mangled name of the function. See [dcl.fct]. STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : $ cat ~/tmp/t.cpp && CC -c -V ~/tmp/t.cpp -o foo.o && CC -DMAIN ~/tmp/t.cpp foo.o EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - No error. ACTUAL - CC: Sun C++ 5.8 Patch 121017-01 2005/12/11 ccfe: Sun C++ 5.8 Patch 121017-01 2005/12/11 Undefined first referenced symbol in file void foo(int) t.o ld: fatal: Symbol referencing errors. No output written to a.out ERROR MESSAGES/STACK TRACES THAT OCCUR : See Actual Result. REPRODUCIBILITY : This bug can be reproduced always. ---------- BEGIN SOURCE ---------- // t.cpp void foo (int); // __1cDfoo6Fi_v_ #ifdef MAIN int main () { foo (0); } #else void foo (const int) { } // __1cDfoo6Fki_v_ #endif ---------- END SOURCE ---------- workaround: comments: (company - Rogue Wave Software , email - sebor@roguewave.com) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira