From stdcxx-dev-return-2411-apmail-incubator-stdcxx-dev-archive=incubator.apache.org@incubator.apache.org Sat Dec 02 00:10:42 2006 Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 52047 invoked from network); 2 Dec 2006 00:10:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Dec 2006 00:10:42 -0000 Received: (qmail 40524 invoked by uid 500); 2 Dec 2006 00:10:51 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 40508 invoked by uid 500); 2 Dec 2006 00:10:51 -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 40497 invoked by uid 99); 2 Dec 2006 00:10:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Dec 2006 16:10:51 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= 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; Fri, 01 Dec 2006 16:10:41 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9433871429F for ; Fri, 1 Dec 2006 16:10:21 -0800 (PST) Message-ID: <3719408.1165018221592.JavaMail.jira@brutus> Date: Fri, 1 Dec 2006 16:10:21 -0800 (PST) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Commented: (STDCXX-301) [XLC++ 8.0] bogus error 1540-0062 explicitly instantiating class template before definition In-Reply-To: <16923467.1162592296677.JavaMail.root@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 [ http://issues.apache.org/jira/browse/STDCXX-301?page=comments#action_12455052 ] Martin Sebor commented on STDCXX-301: ------------------------------------- Created PMR 02312 for the smaller test case from http://issues.apache.org/jira/browse/STDCXX-301#action_12450534. > [XLC++ 8.0] bogus error 1540-0062 explicitly instantiating class template before definition > ------------------------------------------------------------------------------------------- > > Key: STDCXX-301 > URL: http://issues.apache.org/jira/browse/STDCXX-301 > Project: C++ Standard Library > Issue Type: Bug > Components: External > Environment: IBM XLC++ 8.0 > Reporter: Martin Sebor > > PMR 02310,K78,000 > The well-formed program below fails to compile with XLC++ 8.0 on AIX (I haven't checked Linux). It compiles successfully with XLC++ 7.0. > $ cat t.cpp && xlC -qversion && xlC -c t.cpp > template > struct A { > static int foo (); > static int bar (int); > }; > template class B; > template > struct C { > int operator*() { return U::bar (b->baz ()); } > B *b; > }; > template > struct D { > void barf (U); > }; > template struct D > >; > template > struct B { > int baz (); > virtual int foobar (int i = U::foo ()) { return i; } > }; > template > void D::barf (U u) > { > *u; > } > IBM XL C/C++ Enterprise Edition V8.0 for AIX > Version: 08.00.0000.0010 > "t.cpp", line 28.33: 1540-0062 (S) The incomplete class "U" must not be used as a qualifier. > "t.cpp", line 12.39: 1540-0700 (I) The previous message was produced while processing "struct B >". -- 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