Bug 92059

Summary: gcc internal error when compiling buggy code using std::make_pair
Product: [Retired] Red Hat Linux Reporter: Ghislain Lemaur <ghislain.lemaur>
Component: gcc3Assignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-06-17 18:43:04 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:

Description Ghislain Lemaur 2003-06-02 11:40:40 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)

Description of problem:
internal error when compiling the following code.
Note that the code should not compile,
the comparison is done on different types.

#include <map>

int main(){
   std::make_pair<int, float>(2,.5) == 2;
   return 0;
}

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Type the above code in bug.cpp
2. gcc bug.cpp
    

Actual Results:  bug.cpp: Dans function « int main() »:
bug.cpp:4: no match pour l'opérateur «
erreur interne de compilateur: erreur pour rapporter une routine ré-entée
SVP soumettre un rapport complet d'anomalies,
avec le source pré-traité si cela est approprié.
Consulter <URL:http://bugzilla.redhat.com/bugzilla/> pour les instructions.


Additional info:

Comment 1 Jakub Jelinek 2003-06-17 18:43:04 UTC
French translation bug, fixed with:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/po/fr.po.diff?cvsroot=gcc&only_with_tag=gcc-3_2-rhl8-branch&r1=1.3.2.2&r2=1.3.2.2.8.1
gcc-3.3-7 in rawhide does not have this problem either.