Red Hat Bugzilla – Bug 187363
Internal compiler error resolve_overloaded_unification
Last modified: 2007-11-30 17:11:28 EST
Description of problem: Internal compiler error Version-Release number of selected component (if applicable): gcc (GCC) 3.4.3 20050227 (Red Hat 3.4.3-22.1) How reproducible: Always Steps to Reproduce: 1.$ g++ -c foo.cpp Actual results: foo.cpp: In function `void foo()': foo.cpp:8: internal compiler error: in resolve_overloaded_unification, at cp/pt.c:9317 Expected results: foo.cpp:8: error: no matching function for call to ... Additional info: #include <vector> #include <iostream> using namespace std; template <typename T> void foo(void) { vector <int> x; sort(x.begin, x.end); }
Created attachment 127055 [details] Preprocessed source
FC3 is not supported any longer and FC5 gcc doesn't ICE on this, rather emits properly an error: g++ -v; g++ 187363.ii -S -m32 Using built-in specs. Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux Thread model: posix gcc version 4.1.0 20060328 (Red Hat 4.1.0-4) foo.cpp: In function oid foo()': foo.cpp:8: error: no matching function for call to ort(<unresolved overloaded function type>, <unresolved overloaded function type>)'