Date: Tue, 11 Jul 2006 11:03:10 +0930 From: Benjamin Close <cisbjc@cs.unisa.edu.au> To: freebsd-current@freebsd.org Subject: GCC Bug / Upgrade Plan Message-ID: <44B2FFD6.2050201@cs.unisa.edu.au>
next in thread | raw e-mail | index | archive | help
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 <string>
#include <map>
using namespace std;
struct Table
{
string name;
unsigned schema;
map<unsigned,unsigned> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44B2FFD6.2050201>
