Bug 71504
Summary: | Compilation errors with -U__GNUC__ flag using STL header string | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Need Real Name <ssurve> | ||||
Component: | gcc | Assignee: | Jakub Jelinek <jakub> | ||||
Status: | CLOSED WONTFIX | QA Contact: | Brian Brock <bbrock> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 7.2 | ||||||
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: | 2002-08-16 08:50:20 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: | |||||||
Attachments: |
|
Description
Need Real Name
2002-08-14 14:45:55 UTC
Created attachment 70604 [details]
Log file of the compilation errors generated
Why are you doing that? The old libstdc++ certainly is not meant to be used by compilers other than g++. We need to use this flag -U__GNUC__ while using EDG because the EDG version 2.45.2 does not support g++ extensions. And one of our customers wants to include stl header string while generating the front end with EDG. Please have a look on the following typedef in /usr/include/g++-3/stl_rope.h : # ifdef __STL_CLASS_PARTIAL_SPECIALIZATION typedef reverse_iterator<const_iterator> const_reverse_iterator; # else /* __STL_CLASS_PARTIAL_SPECIALIZATION */ typedef reverse_iterator<const_iterator, value_type, const_reference, difference_type> const_reverse_iterator; # endif /* __STL_CLASS_PARTIAL_SPECIALIZATION */ Why don't we have a similar typedef done in /usr/include/g++-3/std/bastring.h? With EDG frontend the corresponding STL should be used. With STL from gcc 3.x you'll have even much harder time to use it with another frontend... |