GCC Bug / Upgrade Plan

From: Benjamin Close <cisbjc_at_cs.unisa.edu.au>
Date: Tue, 11 Jul 2006 11:03:10 +0930
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_at_cs.unisa.edu.au                   South Australia, 5095
F00D C83D 5F7E 5561 DF91  B74D E602 CAA3 4842 B5B4
Received on Mon Jul 10 2006 - 23:30:35 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:58 UTC