Bug 187363

Summary: Internal compiler error resolve_overloaded_unification
Product: [Fedora] Fedora Reporter: Christer Sandberg <christer.sandberg>
Component: gcc34Assignee: Jakub Jelinek <jakub>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 4.1.0-4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-03-30 15:58:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Preprocessed source none

Description Christer Sandberg 2006-03-30 14:44:52 UTC
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);
}

Comment 1 Christer Sandberg 2006-03-30 14:44:53 UTC
Created attachment 127055 [details]
Preprocessed source

Comment 2 Jakub Jelinek 2006-03-30 15:58:39 UTC
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>)'