Bug 26455 - Broken C++ in Qt header
Broken C++ in Qt header
Product: Red Hat Linux
Classification: Retired
Component: qt1x (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Ngo Than
Depends On:
  Show dependency treegraph
Reported: 2001-02-07 07:58 EST by John Levon
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-02-07 07:58:40 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description John Levon 2001-02-07 07:58:36 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.2.16-3 i686)

In QT header qregion.h, there is a snippet like :
#if defined(xor)

This is illegal C++ and breaks with gcc > 2.95.2

This whole xor() function should be removed.

Reproducible: Always
Steps to Reproduce:
1. Compile with g++ > 2.95.2 and include qregion.h

Actual Results:  "defined" without an identifier

Expected Results:  Should have compiled :)

Alas, -fno-operator-names is also broken in both gcc-c++-2.96-54 and

I'm filing that as a separate bug.
Comment 1 Ngo Than 2001-02-07 10:54:56 EST
It's fixed in qt1x-1.45-12. It's in rawhide.

Note You need to log in before you can comment on or make changes to this bug.