This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

libstdc++/737: Regression with maps



>Number:         737
>Category:       libstdc++
>Synopsis:       Regression with maps
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 06 05:26:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Theo Papadopoulo
>Release:        gcc version 2.97 20001103 (experimental)
>Organization:
>Environment:
i686-pc-linux-gnu
Configured with:  --prefix=/net/home/robotvis/gnu/egcs --with-gnu-as --with-gnu-ld --with-as=/net/home/robotvis/gnu/binutils/bin/as --with-ld=/net/home/robotvis/gnu/binutils/bin/ld --enable-libstdcxx-v3
>Description:
The file attached exposes a regression from the current cvs 
g++ WITH libstdc++-v3 enabled with respect to 2.95.2.
I believe the code is legal...
g++-2.95.2 accepts it without a complaint.
The current version (with libstdc++-V3) gives:
vanuatu->/net/home/robotvis/gnu/egcs/bin/g++ map.C
map.C: In function `int main()':
map.C:14: no match for `std::_Rb_tree_iterator<std::pair<const int, const int>, 
   const std::pair<const int, const int>&, const std::pair<const int, const 
   int>*>& != std::_Rb_tree_iterator<std::pair<const int, const int>, 
   std::pair<const int, const int>&, std::pair<const int, const int>*>'
>How-To-Repeat:
Compile the attached file with a recent libstdc++-v3 enabled 
compiler should be sufficient.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="map.C"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="map.C"

I2luY2x1ZGUgPG1hcD4KI2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50Cm1haW4oKQp7CiAgICB0eXBl
ZGVmIHN0ZDo6bWFwPGludCxjb25zdCBpbnQ+IE1hcEludDsKCiAgICBNYXBJbnQgbTsKCiAgICBm
b3IgKHVuc2lnbmVkIGk9MDtpPDEwOysraSkKICAgICAgICBtLmluc2VydChNYXBJbnQ6OnZhbHVl
X3R5cGUoaSxpKSk7CiAgICAKICAgIGZvciAoTWFwSW50Ojpjb25zdF9pdGVyYXRvciBpPW0uYmVn
aW4oKTtpIT1tLmVuZCgpOysraSkKICAgICAgICBzdGQ6OmNlcnIgPDwgaS0+c2Vjb25kIDw8ICcg
JzsKfQo=

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]