From stdcxx-dev-return-4922-apmail-incubator-stdcxx-dev-archive=incubator.apache.org@incubator.apache.org Wed Sep 12 15:16:07 2007 Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 45644 invoked from network); 12 Sep 2007 15:16:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Sep 2007 15:16:05 -0000 Received: (qmail 28053 invoked by uid 500); 12 Sep 2007 15:15:59 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 28042 invoked by uid 500); 12 Sep 2007 15:15:59 -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 28031 invoked by uid 99); 12 Sep 2007 15:15:58 -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 08:15:58 -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 15:17:31 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5616C714159 for ; Wed, 12 Sep 2007 08:15:32 -0700 (PDT) Message-ID: <30726880.1189610132346.JavaMail.jira@brutus> Date: Wed, 12 Sep 2007 08:15:32 -0700 (PDT) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Updated: (STDCXX-152) error instantiating std::map on an incomplete type In-Reply-To: <1718292435.1140470066489.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 [ https://issues.apache.org/jira/browse/STDCXX-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Sebor updated STDCXX-152: -------------------------------- Severity: Compiler Error Priority: Critical (was: Major) I'm making this Critical. Here's another project where it causes problems: http://lists.kde.org/?l=kde-solaris&m=118960397813142&w=2 > error instantiating std::map on an incomplete type > -------------------------------------------------- > > Key: STDCXX-152 > URL: https://issues.apache.org/jira/browse/STDCXX-152 > Project: C++ Standard Library > Issue Type: Improvement > Components: 23. Containers > Affects Versions: 4.1.2, 4.1.3, 4.1.4 > Environment: all > Reporter: Martin Sebor > Priority: Critical > Fix For: 4.3 > > > From http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-user/200602.mbox/%3c20060215231134.6717.qmail@web82211.mail.mud.yahoo.com%3e: > I am trying to use Boost built using stdcxx on Solaris. I was able to build the date_time > library but when I try to compile a test program I end up with errors related to incomplete > types. I have narrowed the issue to the following code > > #include > #include > using namespace std; > template > struct C { > typedef multimap maps; > typedef typename maps::value_type value_type; > }; > > int main () { > C c; > } > When I compile using the default Sun CC libraries or rwtools7_std or stlport4, the code > compiles fine. But when I compile using stdcxx, I end up with the following errors. > > "/opt/idev3/dbapatla/apache-stdcxx-4.1.3/include/rw/_pair.h", line 55: Error: In this declaration > "second" is of an incomplete type "C". > "/opt/idev3/dbapatla/apache-stdcxx-4.1.3/include/rw/_tree.h", line 86: Where: While specializing > "std::pair>". > "/opt/idev3/dbapatla/apache-stdcxx-4.1.3/include/rw/_tree.h", line 86: Where: Specialized > in __rw::__rw_rb_tree_node>>, > std::pair>, std::string, __rw::__select1st std::string, C>, std::string>>. > "/opt/idev3/dbapatla/apache-stdcxx-4.1.3/include/rw/_tree.h", line 259: Where: Specialized > in __rw::__rb_tree>, > __rw::__select1st>, std::string>, > std::less, std::allocator>>>. > "/opt/idev3/dbapatla/apache-stdcxx-4.1.3/include/map", line 323: Where: Specialized in > std::multimap, std::less, std::allocator std::string, C>>>. > "test2.cpp", line 9: Where: Specialized in C. > "test2.cpp", line 13: Where: Specialized in non-template code. > 1 Error(s) detected. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.