* prototype does not match any in class - maybe it should
@ 2004-11-26 17:08 Peter Cech
0 siblings, 0 replies; only message in thread
From: Peter Cech @ 2004-11-26 17:08 UTC (permalink / raw)
To: gcc
Hi,
I got compiler error like this yesterday:
../src/PerSliceImageFilter.txx:79: error: prototype for `void
PerSliceImageFilter<TInputImage, TOutputImage>::SetOutputSlice(const
itk::Image<typename TOutputImage::PixelType,
(PerSliceImageFilter<TInputImage, TOutputImage>::OutputImageDimension -
1)>*, typename itk::ImageToImageFilter<TInputImage,
TOutputImage>::InputImageType::SizeValueType)' does not match any in class `
PerSliceImageFilter<TInputImage, TOutputImage>'
../src/PerSliceImageFilter.h:87: error: candidate is: void
PerSliceImageFilter<TInputImage, TOutputImage>::SetOutputSlice(const
itk::Image<typename TOutputImage::PixelType,
(PerSliceImageFilter<TInputImage, TOutputImage>::OutputImageDimension -
1)>*, typename itk::ImageToImageFilter<TInputImage,
TOutputImage>::InputImageType::SizeValueType)
../src/PerSliceImageFilter.txx:79: error: template definition of non-template `
void PerSliceImageFilter<TInputImage, TOutputImage>::SetOutputSlice(const
itk::Image<typename TOutputImage::PixelType,
(PerSliceImageFilter<TInputImage, TOutputImage>::OutputImageDimension -
1)>*, typename itk::ImageToImageFilter<TInputImage,
TOutputImage>::InputImageType::SizeValueType)'
However hard I look, both error and suggested methods are exactly the
same (there is only one SetOutputSlice in my class). Night sleep did not
help, they look the same this morning.
Preprocessed source can be downloaded from
http://www.vision.ee.ethz.ch/~pcech/bugreports/GCC-20041126/gcc-3.3.5-prototype_missed.ii
http://www.vision.ee.ethz.ch/~pcech/bugreports/GCC-20041126/gcc-3.3.5-prototype_missed.ii.gz
Compiler version is
gcc (GCC) 3.3.5 (Gentoo Linux 3.3.5, ssp-3.3.2-3, pie-8.7.6.7)
but I got the same error with 3.3.4 and 3.2.3. It seems that 3.4.3 is
not affected, but I'm not sure as it chokes on different place.
Is it bug in gcc or am I just doing something extremly stupid?
Regards,
Peter Cech
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-11-26 16:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-26 17:08 prototype does not match any in class - maybe it should Peter Cech
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).