Bug 18690 - tr1/utility is broken on darwin
Summary: tr1/utility is broken on darwin
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: libstdc++ (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: 4.0.0
Assignee: Paolo Carlini
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-27 15:30 UTC by Andrew Pinski
Modified: 2004-11-27 20:27 UTC (History)
1 user (show)

See Also:
Host:
Target: powerpc-darwin
Build:
Known to work:
Known to fail:
Last reconfirmed: 2004-11-27 15:32:28


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Pinski 2004-11-27 15:30:08 UTC
FAIL: tr1/6_containers/tuple/comparison_operators/comparisons.cc (test for excess errors)
Excess errors:
/Users/pinskia/src/local/gcc/objdir/powerpc-apple-darwin7.6.0/libstdc++-v3/include/tr1/utility:77: 
error: expected `>' before numeric constant
/Users/pinskia/src/local/gcc/objdir/powerpc-apple-darwin7.6.0/libstdc++-v3/include/tr1/utility:78: 
error: '_Tp1' was not declared in this scope
/Users/pinskia/src/local/gcc/objdir/powerpc-apple-darwin7.6.0/libstdc++-v3/include/tr1/utility:78: 
error: '_Tp2' was not declared in this scope
/Users/pinskia/src/local/gcc/objdir/powerpc-apple-darwin7.6.0/libstdc++-v3/include/tr1/utility:78: 
error: template argument 1 is invalid
/Users/pinskia/src/local/gcc/objdir/powerpc-apple-darwin7.6.0/libstdc++-v3/include/tr1/utility:78: 
error: template argument 2 is invalid
/Users/pinskia/src/local/gcc/objdir/powerpc-apple-darwin7.6.0/libstdc++-v3/include/tr1/utility:78: 
error: template argument 2 is invalid
/Users/pinskia/src/local/gcc/objdir/powerpc-apple-darwin7.6.0/libstdc++-v3/include/tr1/utility:78: 
error: expected initializer before '&' token
Comment 1 Andrew Pinski 2004-11-27 15:31:03 UTC
The problem is the use of _I in:
   template<int _I, class _Tp1, class _Tp2>
     typename tuple_element<_I, std::pair<_Tp1, _Tp2> >::type&
Comment 2 Paolo Carlini 2004-11-27 20:03:29 UTC
Thanks Andrew, I will commit the obvious fix (_I -> _Int).
Comment 3 GCC Commits 2004-11-27 20:25:20 UTC
Subject: Bug 18690

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	paolo@gcc.gnu.org	2004-11-27 20:25:11

Modified files:
	libstdc++-v3   : ChangeLog 
	libstdc++-v3/include/tr1: utility 

Log message:
	2004-11-27  Paolo Carlini  <pcarlini@suse.de>
	
	PR libstdc++/18690
	* include/tr1/utility (get(pair), get(const pair)): Change
	occurrences of _I to _Int.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&r1=1.2789&r2=1.2790
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/tr1/utility.diff?cvsroot=gcc&r1=1.1&r2=1.2

Comment 4 Paolo Carlini 2004-11-27 20:27:03 UTC
Fixed.