public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/31157] New: Bitfield is not promoted
@ 2007-03-12 23:02 ismail at pardus dot org dot tr
2007-03-12 23:03 ` [Bug c++/31157] " ismail at pardus dot org dot tr
2007-03-13 10:26 ` [Bug c++/31157] [4.2/4.3 Regression] " rguenth at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: ismail at pardus dot org dot tr @ 2007-03-12 23:02 UTC (permalink / raw)
To: gcc-bugs
Following testcase compiles fine with gcc 3.4.6 but not with gcc 4.2.0 20070307
:
----- cut here -----
#include <iostream>
using namespace std;
class Foo
{
public:
Foo() { x=1; y=0; };
unsigned int x:12;
unsigned int y;
};
int main()
{
Foo bar;
max(bar.y,bar.x);
return 0;
}
----- cut here -----
The error is :
max.cpp: In function 'int main()':
max.cpp:17: error: no matching function for call to 'max(unsigned int&, short
unsigned int:12&)'
--
Summary: Bitfield is not promoted
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ismail at pardus dot org dot tr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31157
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/31157] Bitfield is not promoted
2007-03-12 23:02 [Bug c++/31157] New: Bitfield is not promoted ismail at pardus dot org dot tr
@ 2007-03-12 23:03 ` ismail at pardus dot org dot tr
2007-03-13 10:26 ` [Bug c++/31157] [4.2/4.3 Regression] " rguenth at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: ismail at pardus dot org dot tr @ 2007-03-12 23:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from ismail at pardus dot org dot tr 2007-03-12 23:03 -------
Original code was from WebKit SVN.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31157
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/31157] [4.2/4.3 Regression] Bitfield is not promoted
2007-03-12 23:02 [Bug c++/31157] New: Bitfield is not promoted ismail at pardus dot org dot tr
2007-03-12 23:03 ` [Bug c++/31157] " ismail at pardus dot org dot tr
@ 2007-03-13 10:26 ` rguenth at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-03-13 10:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2007-03-13 10:26 -------
This has been fixed on the branch by the patch for PR30274.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |30274
Status|UNCONFIRMED |RESOLVED
Keywords| |rejects-valid
Known to work| |4.1.2
Resolution| |FIXED
Summary|Bitfield is not promoted |[4.2/4.3 Regression]
| |Bitfield is not promoted
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31157
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-03-13 10:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-12 23:02 [Bug c++/31157] New: Bitfield is not promoted ismail at pardus dot org dot tr
2007-03-12 23:03 ` [Bug c++/31157] " ismail at pardus dot org dot tr
2007-03-13 10:26 ` [Bug c++/31157] [4.2/4.3 Regression] " rguenth at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).