Bug 92059 - gcc internal error when compiling buggy code using std::make_pair
Summary: gcc internal error when compiling buggy code using std::make_pair
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: gcc3
Version: 8.0
Hardware: i686
OS: Linux
medium
low
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-06-02 11:40 UTC by Ghislain Lemaur
Modified: 2007-04-18 16:54 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2003-06-17 18:43:04 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.