GCC Bug / Upgrade Plan
Benjamin Close
cisbjc at cs.unisa.edu.au
Tue Jul 11 01:30:36 UTC 2006
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
More information about the freebsd-current
mailing list