Bug 1483005
| Summary: | glibc-2.26-2.fc27 breaks assert on C++ objects: no match for 'operator==' | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Florian Weimer <fweimer> |
| Component: | glibc | Assignee: | Florian Weimer <fweimer> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 27 | CC: | arjun, avi.kivity, codonell, dj, extras-qa, fweimer, jan.kratochvil, law, mfabian, pfrankli, ppisar, sbergman, siddhesh |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | glibc-2.26.90-6.fc28 glibc-2.26-4.fc27 glibc-2.25-9.fc26 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1482990 | Environment: | |
| Last Closed: | 2017-10-07 11:02:07 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Florian Weimer
2017-08-18 14:55:54 UTC
> You can probably use this:
>
> assert(!!a);
But operator! can be overloaded for the type of a, so that's not guaranteed to work, either. I think the only way to make that work is to split the assert macro for __cplusplus and have
(void) sizeof bool(expr)
there.
Note Fedora 26 (and its users) suffer from the same problem. *** Bug 1483821 has been marked as a duplicate of this bug. *** glibc-2.25-9.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-781951efb3 glibc-2.25-9.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-781951efb3 glibc-2.25-9.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report. |