From llwang@infor.ck.tp.edu.tw  Thu Jun  2 13:29:29 2005
Return-Path: <llwang@infor.ck.tp.edu.tw>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 56C0216A41C
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  2 Jun 2005 13:29:29 +0000 (GMT)
	(envelope-from llwang@infor.ck.tp.edu.tw)
Received: from infor.ck.tp.edu.tw (infor.ck.tp.edu.tw [203.64.26.200])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1A0DE43D49
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  2 Jun 2005 13:29:29 +0000 (GMT)
	(envelope-from llwang@infor.ck.tp.edu.tw)
Received: by infor.ck.tp.edu.tw (Postfix, from userid 1001)
	id 6069346270; Thu,  2 Jun 2005 21:29:28 +0800 (CST)
Message-Id: <20050602132928.6069346270@infor.ck.tp.edu.tw>
Date: Thu,  2 Jun 2005 21:29:28 +0800 (CST)
From: Li-Lun Wang (Leland Wang) <llwang@infor.org>
Reply-To: Li-Lun Wang (Leland Wang) <llwang@infor.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: ropeimpl.h in gcc 3.4.2 broken
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         81809
>Category:       gnu
>Synopsis:       ropeimpl.h in gcc 3.4.2 broken
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 02 13:30:01 GMT 2005
>Closed-Date:    Sat Jun 04 15:52:34 GMT 2005
>Last-Modified:  Sat Jun 04 15:52:34 GMT 2005
>Originator:     Li-Lun Wang (Leland Wang)
>Release:        FreeBSD 6.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD ll-X31 6.0-CURRENT FreeBSD 6.0-CURRENT #0: Thu Jun  2 01:16:16 CST 2005     root@ll-X31:/usr/obj/usr/src/sys/X31  i386


	
>Description:
/usr/include/c++/3.4/ext/ropeimpl.h provided with gcc 3.4.2 is broken,
making sources which include ext/ropeimpl.h fail to build.

Ref: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17259
	
>How-To-Repeat:
Write a C++ source file with the line
#include <ext/ropeimpl.h>
and try to build it.
	
>Fix:
--- src/contrib/libstdc++/include/ext/ropeimpl.h.orig	Wed Jul 28 11:12:05 2004
+++ src/contrib/libstdc++/include/ext/ropeimpl.h	Thu Jun  2 21:26:59 2005
@@ -1295,7 +1295,7 @@
     __right_len = __right->_M_size;
     if (_Rope_constants::_S_leaf == __left->_M_tag) {
 	_RopeLeaf* __l = (_RopeLeaf*) __left;
-	if (_RopeRep::_S_leaf == __right->_M_tag) {
+	if (_Rope_constants::_S_leaf == __right->_M_tag) {
 	    _RopeLeaf* __r = (_RopeLeaf*) __right;
 	    return lexicographical_compare_3way(
 			__l->_M_data, __l->_M_data + __left_len,

	


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: stefanf 
State-Changed-When: Sat Jun 4 15:51:51 GMT 2005 
State-Changed-Why:  
Fixed by the recent GCC 3.4.4 import.  Thanks for the report though. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=81809 
>Unformatted:
