From owner-freebsd-current@FreeBSD.ORG Tue Jul 11 01:30:35 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E545A16A500 for ; Tue, 11 Jul 2006 01:30:35 +0000 (UTC) (envelope-from cisbjc@cs.unisa.edu.au) Received: from reason.levels.unisa.edu.au (reason.ml.unisa.edu.au [130.220.164.145]) by mx1.FreeBSD.org (Postfix) with ESMTP id 36C2043D68 for ; Tue, 11 Jul 2006 01:30:31 +0000 (GMT) (envelope-from cisbjc@cs.unisa.edu.au) Received: from [192.168.0.152] (cis220313.levels.unisa.edu.au [130.220.37.202]) by reason.levels.unisa.edu.au (8.12.10/8.12.10) with ESMTP id k6B1UMV7032390 for ; Tue, 11 Jul 2006 11:00:22 +0930 (CST) Message-ID: <44B2FFD6.2050201@cs.unisa.edu.au> Date: Tue, 11 Jul 2006 11:03:10 +0930 From: Benjamin Close User-Agent: Thunderbird 1.5.0.2 (X11/20060523) MIME-Version: 1.0 To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: GCC Bug / Upgrade Plan X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jul 2006 01:30:36 -0000 Hi All, The attached code highlights what I believe is a bug in the -current g++ (3.4.4) compiler, which appears not to be fixed in g++ 3.4.6. Since the 3.4 line of gxx is now closed, I'm curious what the plans for upgrading the compiler to gcc4x are, as it compiles the code as expected ( 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Tue Jul 11 08:22:35 CST 2006) #include #include using namespace std; struct Table { string name; unsigned schema; map tuple; }; Table t[] = { { "test", 0x0, } // map created using default contructor }; int main(void) { t[0].tuple[1]=1; // SIGSEGV on this line return 0; } Cheers, Benjamin -- 3D Research Associate / System Administrator +61 8 8302 3669 School of Computer and Information Science Room D1-07, ML Campus University of South Australia Mawson Lakes Blvd. Benjamin.Close@cs.unisa.edu.au South Australia, 5095 F00D C83D 5F7E 5561 DF91 B74D E602 CAA3 4842 B5B4