Return-Path: Delivered-To: apmail-stdcxx-issues-archive@locus.apache.org Received: (qmail 99517 invoked from network); 9 Mar 2008 23:19:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Mar 2008 23:19:20 -0000 Received: (qmail 8210 invoked by uid 500); 9 Mar 2008 23:19:17 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 8185 invoked by uid 500); 9 Mar 2008 23:19:17 -0000 Mailing-List: contact issues-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list issues@stdcxx.apache.org Received: (qmail 8166 invoked by uid 99); 9 Mar 2008 23:19:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Mar 2008 16:19:17 -0700 X-ASF-Spam-Status: No, hits=-1999.8 required=10.0 tests=ALL_TRUSTED,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Mar 2008 23:18:29 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5ECFC234C086 for ; Sun, 9 Mar 2008 16:17:46 -0700 (PDT) Message-ID: <1438326004.1205104666380.JavaMail.jira@brutus> Date: Sun, 9 Mar 2008 16:17:46 -0700 (PDT) From: "Martin Sebor (JIRA)" To: issues@stdcxx.apache.org Subject: [jira] Created: (STDCXX-743) [HP aCC 3.77] bogus error #440 on valid code MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [HP aCC 3.77] bogus error #440 on valid code -------------------------------------------- Key: STDCXX-743 URL: https://issues.apache.org/jira/browse/STDCXX-743 Project: C++ Standard Library Issue Type: Bug Components: External Environment: $ uname -sr && aCC -V HP-UX B.11.31 aCC: HP ANSI C++ B3910B A.03.77 Reporter: Martin Sebor The code below distilled from a test case submitted in this [post|http://www.nabble.com/STDCXX-615-to15886174.html] fails to compile with HP aCC 3.77 and prior versions but compiles successfully with gcc 4.1.2 and EDG eccp 3.9. {noformat} $ cat t.cpp && aCC -V -c t.cpp template struct B0 { }; template struct B1: B0 { }; template struct D: B1 { }; template struct X { T* p; X () { } template X (const X &p) : p (p.p) { } }; X > x0; X > x1 (x0); aCC: HP ANSI C++ B3910B A.03.77 Error 440: "t.cpp", line 8 # Cannot initialize 'volatile B1 *' with 'volatile D *const'. template X (const X &p) : p (p.p) { } ^^^ Error 445: "t.cpp", line 1 # Cannot recover from earlier errors. template struct B0 { }; ^^^^^^^^^^^^^^^^^^^^^^^^^^ {noformat} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.