Imaging/vtkImageLogic.cxx causes GCC 3.2 internal compiler error with SSE2 enabled
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Thought someone might know what to do with this.
Set CMAKE_CXX_FLAGS="-msse2 -mfpmath=sse" and build Imaging/vtkImageLogic.cxx with GCC3.2.{2,3} to see the error.
Make trueValue in vtkImageLogicExecute1() a volatile variable to fix the problem:
volatile T trueValue = (T)(self->GetOutputTrueValue());
I have verified this error on GCC 3.2.2 on RH9-x86 and GCC 3.2.3 on RHEW3-x86_64.
Cheers, Demian