[Bug c++/11922] New: ICE on type_unification_real

gcc-bugzilla at x-infinity dot com gcc-bugzilla@gcc.gnu.org
Thu Aug 14 14:26:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11922

           Summary: ICE on type_unification_real
           Product: gcc
           Version: 3.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gcc-bugzilla at x-infinity dot com
                CC: gcc-bugs at gcc dot gnu dot org

The following output illustrates the ICE.
I'm not sure if this code should compile or is even syntactically correct, but 
ICE is still there.

xm@xm-debian:~/D/Projects/QSX/QSX/Source$ g++ -v -save-temps -pthread 
test.cpp -O3 -g2 -I ../Include -DNDEBUG ../Lib/release-
sse/QSX_Core.a ../Lib/release-sse/QSX_Math.a ../Lib/release-
sse/QSX_OS.a ../Lib/release-sse/QSX_Graphics.a ../Lib/release-sse/QSX_IO.a
Reading specs from /usr/lib/gcc-lib/i386-linux/3.3.1/specs
Configured with: ../src/configure -v --enable-
languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --
mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-
dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --
without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-
debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i386-linux
Thread model: posix
gcc version 3.3.1 (Debian)
 /usr/lib/gcc-lib/i386-linux/3.3.1/cc1plus -E -D__GNUG__=3 -quiet -v -
I ../Include -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=1 -
D_GNU_SOURCE -D_REENTRANT -DNDEBUG test.cpp -O3 test.ii
ignoring nonexistent directory "/usr/i386-linux/include"
#include "..." search starts here:
#include <...> search starts here:
 ../Include
 /usr/include/c++/3.3
 /usr/include/c++/3.3/i386-linux
 /usr/include/c++/3.3/backward
 /usr/local/include
 /usr/lib/gcc-lib/i386-linux/3.3.1/include
 /usr/include
End of search list.
 /usr/lib/gcc-lib/i386-linux/3.3.1/cc1plus -fpreprocessed test.ii -quiet -
dumpbase test.cpp -auxbase test -g2 -O3 -version -o test.s
GNU C++ version 3.3.1 (Debian) (i386-linux)
        compiled by GNU C version 3.3.1 (Debian).
GGC heuristics: --param ggc-min-expand=38 --param ggc-min-heapsize=15737
../Include/QSX_Graphics/ChannelFormatConverter.h: In static member function `
   static typename TraitsType::value_type
   QSX::Graphics::ChannelFormatConverter<TraitsType>::from(typename
   OtherTraitsType::value_type) [with OtherTraitsType =
   QSX::Graphics::ChannelTraits<FORMAT_BYTE>, TraitsType =
   QSX::Graphics::ChannelTraits<FORMAT_BYTE>]':
../Include/QSX_Graphics/pixel_converter_helper.h:51:   instantiated from `void 
QSX::Graphics::pixel_converter_helper<TargetPixelTraitsType, 
SourcePixelTraitsType, channel_offset>::operator()
(QSX::Graphics::Pixel<TargetPixelTraitsType>&, const 
QSX::Graphics::Pixel<SourcePixelTraitsType>&) [with TargetPixelTraitsType = 
QSX::Graphics::PixelTraits<QSX::Graphics::ChannelTraits<FORMAT_BYTE>, 
QSX::Graphics::PixelDescriptor_BGR>, SourcePixelTraitsType = 
QSX::Graphics::PixelTraits<QSX::Graphics::ChannelTraits<FORMAT_BYTE>, 
QSX::Graphics::PixelDescriptor_BGRA>, int channel_offset = 0]'
../Include/QSX_Graphics/PixelConverter.h:94:   instantiated from `static void 
QSX::Graphics::PixelConverter<TargetPixelTraitsType, SourcePixelTraitsType, 
metric>::fetch(QSX::Graphics::Pixel<TargetPixelTraitsType>&, const 
QSX::Graphics::Pixel<SourcePixelTraitsType>&) [with TargetPixelTraitsType = 
QSX::Graphics::PixelTraits<QSX::Graphics::ChannelTraits<FORMAT_BYTE>, 
QSX::Graphics::PixelDescriptor_BGR>, SourcePixelTraitsType = 
QSX::Graphics::PixelTraits<QSX::Graphics::ChannelTraits<FORMAT_BYTE>, 
QSX::Graphics::PixelDescriptor_BGRA>, int metric = 0]'
../Include/QSX_Graphics/Pixel.h:305:   instantiated from `void 
QSX::Graphics::Pixel<PixelTraitsType>::fetch(const 
QSX::Graphics::Pixel<SourcePixelTraitsType>&) [with int metric = 0, 
SourcePixelTraitsType = 
QSX::Graphics::PixelTraits<QSX::Graphics::ChannelTraits<FORMAT_BYTE>, 
QSX::Graphics::PixelDescriptor_BGRA>, PixelTraitsType = 
QSX::Graphics::PixelTraits<QSX::Graphics::ChannelTraits<FORMAT_BYTE>, 
QSX::Graphics::PixelDescriptor_BGR>]'
../Include/QSX_Graphics/Bitmap.h:407:   instantiated from `void 
QSX::Graphics::Bitmap<PixelType>::fetch(const 
QSX::Graphics::Bitmap<OtherPixelType>&) [with int metric = 0, OtherPixelType = 
QSX::Graphics::Pixel_ByteBGRA, PixelType = QSX::Graphics::Pixel_ByteBGR]'
../Include/QSX_Graphics/Bitmap.h:388:   instantiated from `void 
QSX::Graphics::Bitmap<PixelType>::fetch(const 
QSX::Graphics::Bitmap<OtherPixelType>&) [with OtherPixelType = 
QSX::Graphics::Pixel_ByteBGRA, PixelType = QSX::Graphics::Pixel_ByteBGR]'
../Include/QSX_Graphics/Bitmap.h:272:   instantiated from 
`QSX::Graphics::Bitmap<PixelType>::Bitmap(const 
QSX::Graphics::Bitmap<OtherPixelType>&) [with OtherPixelType = 
QSX::Graphics::Pixel_ByteBGRA, PixelType = QSX::Graphics::Pixel_ByteBGR]'
test.cpp:21:   instantiated from here
../Include/QSX_Graphics/ChannelFormatConverter.h:62: internal compiler error: 
in
   type_unification_real, at cp/pt.c:8275
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.



More information about the Gcc-bugs mailing list