Here is a program that when compiled/run on the HP, crashes. It runs
fine on NT and Solaris. Can anyone get this to run on their HP
machine? If so, what's the trick? I'm more interested in compiler
switches, patches, etc, but not changes to this code, unless someone
can tell me definitively that something in the code goes against the
C++ standard.
I compile it with "aCC -AA bug.cxx". I've tried other compiler switch
combinations, but nothing works for me.
Thanks,
Kevin
------------------------- bug.cxx code Below ------------------
#include <vector>
#include <string>
class TableRow {
public:
TableRow(){};
TableRow( long length ) { row.resize( length ); };
virtual ~TableRow(){};
std::vector<double> row;
class Table {Quote:};
public:
Table(){};
Table( long rowCount ) { rows.resize( rowCount ); };
virtual ~Table(){};
std::vector< TableRow > rows;
class TableList {Quote:};
public:
TableList( long tableCount );
virtual ~TableList(){};
std::vector<Table> tableList;
TableList::TableList( long tableCount )Quote:};
{
tableList.resize(tableCount);
tableList[ 0 ] = Table( 3 );
tableList[ 1 ] = Table( 3 );
tableList[ 2 ] = Table( 3 );
void testFunc()Quote:}
{
TableList a(3);
int main(int argc, char * argv[])Quote:}
{
testFunc();
return 0;
Quote:}