Bug 26455

Summary: Broken C++ in Qt header
Product: [Retired] Red Hat Linux Reporter: John Levon <rh-bugzilla>
Component: qt1xAssignee: Than Ngo <than>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0   
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: 2001-02-07 12:58:40 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:

Description John Levon 2001-02-07 12:58:36 UTC
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
2.
3.
	

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
gcc-c++-2.96-69

I'm filing that as a separate bug.

Comment 1 Ngo Than 2001-02-07 15:54:56 UTC
It's fixed in qt1x-1.45-12. It's in rawhide.