Bug 59974
| Summary: | gcc v3 failure to compile overloaded code | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | greg hosler <greg> | ||||
| Component: | gcc3 | Assignee: | Jakub Jelinek <jakub> | ||||
| Status: | CLOSED NOTABUG | QA Contact: | |||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 7.3 | ||||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | i386 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2002-02-17 06:25:10 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
greg hosler
2002-02-17 06:21:27 UTC
Created attachment 45860 [details]
sample program that fails to compile
This is covered in ISO C++ 98 [over] chapter. By default, g++ now defaults to -pedantic-errors, unless -pedantic or -fpermissive is given. If you use -pedantic with g++ 2.96-RH or earlier, you'll get an error too. The problem is that one overloading candidate is const qualified, the other one has worse type. As quick workaround, you can use -fpermissive, long term the code needs to be fixed. |