Bug 26455 - Broken C++ in Qt header
Summary: Broken C++ in Qt header
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: qt1x
Version: 7.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Than Ngo
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-02-07 12:58 UTC by John Levon
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2001-02-07 12:58:40 UTC
Embargoed:


Attachments (Terms of Use)

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.


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