[Insight-developers] gcc 4.6 bug
David Doria
daviddoria at gmail.com
Mon Apr 18 07:41:24 EDT 2011
There is a bug in gcc > 4.6
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48657
Which does not allow you to use a const variable as a template
parameter. The following (from
itkBSplineDeformableTransformTest2.cxx):
const unsigned int ImageDimension = 2;
typedef itk::Image< PixelType, ImageDimension > MovingImageType;
produces 'could not convert template argument ImageDimension to unsigned int'
It works fine if you change it to:
typedef itk::Image< PixelType, 2> FixedImageType;
The only place we run into this problem is with Testing. The core ITK
builds fine with the small patch I pushed to Gerrit yesterday.
How do we handle this? Just wait until the gcc bug gets fixed? Or
change all of these cases (which there don't seem to be many of) and
then change them back later?
David
More information about the Insight-developers
mailing list