[Insight-developers] gcc 4.6 bug

Bill Lorensen bill.lorensen at gmail.com
Mon Apr 18 07:45:48 EDT 2011


If it is a known bug in the compile, I say we wait until they patch
the compiler.

On Mon, Apr 18, 2011 at 7:41 AM, David Doria <daviddoria at gmail.com> wrote:
> 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
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
>


More information about the Insight-developers mailing list