Searching around, I couldn't find anyone with the same problem. Obviously it seems related to the fact that there are negative numbers in the arrays, and a simple test of my own confirmed that. The same error does not appear if assigning a negative number to an element of an unsigned int[]. Further more, the error does not occur if assigning a regular (non-array) unsigned char a negative number. That is,
Code: Select all
unsigned char c = -10;
Code: Select all
unsigned char c[] = {-10, 10};
Might this be a bug in GCC? Would it work to (temporarily) solve the issue for myself by wrapping the negative numbers in a static_cast<unsigned char>()?
Various pieces of technical information:
OS: 64-bit debian based linux distro
Compiler: GCC/g++ 4.6.1
Bullet version: 2.79