public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/9704: [3.3/3.4 regression] miscompilation of classes with bit fields
@ 2003-02-14 22:14 bangerth
0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-02-14 22:14 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, mark, matz, mmitchel, nobody
Old Synopsis: miscompiles openoffice (deals with bitfield members)
New Synopsis: [3.3/3.4 regression] miscompilation of classes with bit fields
Responsible-Changed-From-To: unassigned->mmitchel
Responsible-Changed-By: bangerth
Responsible-Changed-When: Fri Feb 14 22:14:05 2003
Responsible-Changed-Why:
Possibly the one who's guilty ;-)
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Fri Feb 14 22:14:05 2003
State-Changed-Why:
Confirmed. Cleaned-up code:
--------------------------
extern "C" void abort(void);
struct Dummy {
void *p;
Dummy() {}
Dummy(const Dummy&) {}
};
struct X {
int :1;
int n:1;
X () : n(1) {}
};
struct Y {
Dummy dummy;
X x;
};
int main()
{
Y y1;
Y y2(y1);
if (y1.x.n != y2.x.n)
abort ();
}
------------------------------
This aborts with 3.3 and 3.4, though it shouldn't, of
course (original and copy should be equal).
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9704
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/9704: [3.3/3.4 regression] miscompilation of classes with bit fields
@ 2003-02-18 19:19 mmitchel
0 siblings, 0 replies; 2+ messages in thread
From: mmitchel @ 2003-02-18 19:19 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, mark, matz, mmitchel
Synopsis: [3.3/3.4 regression] miscompilation of classes with bit fields
State-Changed-From-To: analyzed->closed
State-Changed-By: mmitchel
State-Changed-When: Tue Feb 18 19:19:34 2003
State-Changed-Why:
Fixed in GCC 3.4.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9704
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-02-18 19:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-14 22:14 c++/9704: [3.3/3.4 regression] miscompilation of classes with bit fields bangerth
2003-02-18 19:19 mmitchel
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).