[PCH] Testing
Gabriel Dos Reis
gdr@integrable-solutions.net
Fri Dec 13 05:43:00 GMT 2002
Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr> writes:
| I remade my last try with a newest version, I'm now getting a
| segfault:
|
| hawai->/proj/odyssee/home/gnu/gcc-pch/bin/g++ -v
| Reading specs from /proj/odyssee/home/gnu/gcc-pch/lib/gcc-lib/i686-pc-linux-gnu/3.3/specs
| Configured with: ../../Cvs/gcc/pch-branch/configure --with-gnu-as --with-gnu-ld --with-as=/proj/odyssee/home/gnu/binutils/bin/as --with-ld=/proj/odyssee/home/gnu/binutils/bin/ld --prefix=/proj/odyssee/home/gnu/gcc-pch --enable-runpath --enable-__cxa_atexit
| Thread model: posix
| gcc version 3.3 20021124 (experimental)
|
| hawai->/proj/odyssee/home/gnu/gcc-pch/bin/g++ -I ../src EDP1.C
| /0/user/papadop/Robotvis++/Libs/Image/src/image/Image.H: In member function `
| Images::Image2D<Pixel>::operator Images::Image2D<Pixel2>() const [with
| Pixel2 = float, Pixel = unsigned char]':
| EDP1.C:24: instantiated from here
| /0/user/papadop/Robotvis++/Libs/Image/src/image/Image.H:661: internal compiler error: Segmentation
| fault
| Please submit a full bug report,
| with preprocessed source if appropriate.
| See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
|
| Here is the code around line 661:
|
| template <typename Pixel2>
| operator Image2D<Pixel2>() const {
| Image2D<Pixel2> newImage(dimx(),dimy());
| typename Image2D<Pixel2>::template iterator<pixel> j = newImage.Image2D<Pixel2>::begin();
| for(const_iterator<pixel> i=begin();i!=end();++i,++j)
| *j = static_cast<Pixel2>(*i);
| return newImage;
| }
|
| Line 661 is the line with the return statement.
Does it work with non-PCH variants, I mean, does it work with the
non-PCH base source?
-- Gaby
More information about the Gcc-patches
mailing list