Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 96286 invoked from network); 1 Mar 2006 20:25:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Mar 2006 20:25:13 -0000 Received: (qmail 1421 invoked by uid 500); 1 Mar 2006 20:26:00 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 1371 invoked by uid 500); 1 Mar 2006 20:26:00 -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 1360 invoked by uid 99); 1 Mar 2006 20:26:00 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Mar 2006 12:25:58 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 16528DD for ; Wed, 1 Mar 2006 21:25:36 +0100 (CET) Message-ID: <1639224220.1141244736089.JavaMail.jira@ajax.apache.org> Date: Wed, 1 Mar 2006 21:25:36 +0100 (CET) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Updated: (STDCXX-157) [XLC++ 7.0, 8.0] explicit instantiation fails to emit some symbols In-Reply-To: <351279974.1141243422389.JavaMail.jira@ajax.apache.org> 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 [ http://issues.apache.org/jira/browse/STDCXX-157?page=all ] Martin Sebor updated STDCXX-157: -------------------------------- Summary: [XLC++ 7.0, 8.0] explicit instantiation fails to emit some symbols (was: [XLC++ 8.0/Linux] explicit instantiation fails to emit some symbols) The same error can be reproduced with both XLC++ 7.0 and 8.0 on AIX: $ xlC -qversion && xlC -c t.cpp && xlC -Dmain=main -c t.cpp -o a.o && xlC a.o t.o IBM XL C/C++ Enterprise Edition V7.0 ld: 0711-317 ERROR: Undefined symbol: .S::bar() ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. $ xlC -qversion && xlC -c t.cpp && xlC -Dmain=main -c t.cpp -o a.o && xlC a.o t.o IBM XL C/C++ Enterprise Edition V8.0 for AIX Version: 08.00.0000.0000 ld: 0711-317 ERROR: Undefined symbol: .S::bar() ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. > [XLC++ 7.0, 8.0] explicit instantiation fails to emit some symbols > ------------------------------------------------------------------ > > Key: STDCXX-157 > URL: http://issues.apache.org/jira/browse/STDCXX-157 > Project: C++ Standard Library > Type: Bug > Components: External > Environment: $ uname -sr && xlC -qversion > Linux 2.6.5-7.191-pseries64 > IBM XL C/C++ Advanced Edition V8.0 for Linux > Version: 08.00.0000.0000 > Reporter: Martin Sebor > > PMR 02236,K78,000 > XLC++ 8.0 fails to emit a symbol for the member function S::bar() in the program below. > $ cat t.cpp && xlC -c t.cpp && echo xlc: && nm -C t.o && > echo gcc: && gcc -c t.cpp && nm -C t.o > template T foo (T t) { return t; } > template > struct S > { > T bar () { return foo (T ()); } > void baz () { foo(0); } > }; > template struct S; > xlc: > U __IBMCPlusPlusExceptionV2 > 00000000 W int foo(int) > 00000014 W S::baz() > gcc: > 00000000 W int foo(int) > 00000000 W S::bar() > 00000000 W S::baz() -- 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