* [Bug c++/35909] ice for legal code
2008-04-11 18:07 [Bug c++/35909] New: ice for legal code dcb314 at hotmail dot com
@ 2008-04-11 18:09 ` dcb314 at hotmail dot com
2008-04-11 21:24 ` [Bug c++/35909] [4.4 Regression] " rguenth at gcc dot gnu dot org
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: dcb314 at hotmail dot com @ 2008-04-11 18:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from dcb314 at hotmail dot com 2008-04-11 18:08 -------
Created an attachment (id=15468)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15468&action=view)
C++ source code
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35909
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/35909] [4.4 Regression] ice for legal code
2008-04-11 18:07 [Bug c++/35909] New: ice for legal code dcb314 at hotmail dot com
2008-04-11 18:09 ` [Bug c++/35909] " dcb314 at hotmail dot com
@ 2008-04-11 21:24 ` rguenth at gcc dot gnu dot org
2008-04-11 21:30 ` [Bug c++/35909] [4.3/4.4 " pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-04-11 21:24 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Summary|ice for legal code |[4.4 Regression] ice for
| |legal code
Target Milestone|--- |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35909
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/35909] [4.3/4.4 Regression] ice for legal code
2008-04-11 18:07 [Bug c++/35909] New: ice for legal code dcb314 at hotmail dot com
2008-04-11 18:09 ` [Bug c++/35909] " dcb314 at hotmail dot com
2008-04-11 21:24 ` [Bug c++/35909] [4.4 Regression] " rguenth at gcc dot gnu dot org
@ 2008-04-11 21:30 ` pinskia at gcc dot gnu dot org
2008-04-12 22:04 ` [Bug c++/35909] [4.4 Regression] ICE with bit-field and const references pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-04-11 21:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2008-04-11 21:29 -------
This is most likely caused by PR 35708.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu dot org
Known to fail| |4.4.0
Known to work| |4.3.0
Summary|[4.4 Regression] ice for |[4.3/4.4 Regression] ice for
|legal code |legal code
Target Milestone|4.4.0 |4.3.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35909
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/35909] [4.4 Regression] ICE with bit-field and const references
2008-04-11 18:07 [Bug c++/35909] New: ice for legal code dcb314 at hotmail dot com
` (2 preceding siblings ...)
2008-04-11 21:30 ` [Bug c++/35909] [4.3/4.4 " pinskia at gcc dot gnu dot org
@ 2008-04-12 22:04 ` pinskia at gcc dot gnu dot org
2008-04-15 8:58 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-04-12 22:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2008-04-12 22:03 -------
Reduced testcase:
struct MidiCommand
{
unsigned data1 : 8;
};
void g(const unsigned char &);
void f(MidiCommand mc)
{
g(mc.data1);
}
----- CUT ---
And I was wrong, it is not related to that PR.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Known to work|4.3.0 |
Last reconfirmed|0000-00-00 00:00:00 |2008-04-12 22:03:37
date| |
Summary|[4.3/4.4 Regression] ice for|[4.4 Regression] ICE with
|legal code |bit-field and const
| |references
Target Milestone|4.3.1 |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35909
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/35909] [4.4 Regression] ICE with bit-field and const references
2008-04-11 18:07 [Bug c++/35909] New: ice for legal code dcb314 at hotmail dot com
` (3 preceding siblings ...)
2008-04-12 22:04 ` [Bug c++/35909] [4.4 Regression] ICE with bit-field and const references pinskia at gcc dot gnu dot org
@ 2008-04-15 8:58 ` pinskia at gcc dot gnu dot org
2008-04-20 20:49 ` [Bug c++/35909] [4.3/4.4 " rguenth at gcc dot gnu dot org
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-04-15 8:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2008-04-15 08:57 -------
It did work with:
GNU C++ (GCC) version 4.3.0 20080128 (experimental) [trunk revision 131899]
(i386-apple-darwin8.10.1)
But fails with:
GNU C++ (GCC) version 4.4.0 20080304 (experimental) [trunk revision 132852]
(i386-apple-darwin8.10.1)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35909
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/35909] [4.3/4.4 Regression] ICE with bit-field and const references
2008-04-11 18:07 [Bug c++/35909] New: ice for legal code dcb314 at hotmail dot com
` (4 preceding siblings ...)
2008-04-15 8:58 ` pinskia at gcc dot gnu dot org
@ 2008-04-20 20:49 ` rguenth at gcc dot gnu dot org
2008-04-21 15:58 ` jakub at gcc dot gnu dot org
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-04-20 20:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rguenth at gcc dot gnu dot org 2008-04-20 20:48 -------
This also fails on the 4.3 branch now which makes it a regression against
4.3.0.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenth at gcc dot gnu dot
| |org
Severity|normal |blocker
Known to fail|4.4.0 |4.4.0 4.3.1
Known to work| |4.3.0
Priority|P3 |P1
Summary|[4.4 Regression] ICE with |[4.3/4.4 Regression] ICE
|bit-field and const |with bit-field and const
|references |references
Target Milestone|4.4.0 |4.3.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35909
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/35909] [4.3/4.4 Regression] ICE with bit-field and const references
2008-04-11 18:07 [Bug c++/35909] New: ice for legal code dcb314 at hotmail dot com
` (5 preceding siblings ...)
2008-04-20 20:49 ` [Bug c++/35909] [4.3/4.4 " rguenth at gcc dot gnu dot org
@ 2008-04-21 15:58 ` jakub at gcc dot gnu dot org
2008-04-21 16:04 ` rguenth at gcc dot gnu dot org
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-04-21 15:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jakub at gcc dot gnu dot org 2008-04-21 15:58 -------
Introduced by PR35056, so it is not a regression against 4.3.0, but against
4.2.x. The ICE is only present in ENABLE_CHECKING builds, otherwise
TARGET_EXPR
with incompatible type is created.
Why do you think the testcase is valid?
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aoliva at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35909
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/35909] [4.3/4.4 Regression] ICE with bit-field and const references
2008-04-11 18:07 [Bug c++/35909] New: ice for legal code dcb314 at hotmail dot com
` (6 preceding siblings ...)
2008-04-21 15:58 ` jakub at gcc dot gnu dot org
@ 2008-04-21 16:04 ` rguenth at gcc dot gnu dot org
2008-04-22 6:28 ` aoliva at gcc dot gnu dot org
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-04-21 16:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from rguenth at gcc dot gnu dot org 2008-04-21 16:04 -------
That explains why I didn't see it with my 4.3.0 build. Lowering severity
again.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|blocker |normal
Keywords| |ice-checking
Priority|P1 |P2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35909
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/35909] [4.3/4.4 Regression] ICE with bit-field and const references
2008-04-11 18:07 [Bug c++/35909] New: ice for legal code dcb314 at hotmail dot com
` (7 preceding siblings ...)
2008-04-21 16:04 ` rguenth at gcc dot gnu dot org
@ 2008-04-22 6:28 ` aoliva at gcc dot gnu dot org
2008-04-22 6:29 ` aoliva at gcc dot gnu dot org
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2008-04-22 6:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from aoliva at gcc dot gnu dot org 2008-04-22 06:27 -------
Mine
--
aoliva at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |aoliva at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35909
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/35909] [4.3/4.4 Regression] ICE with bit-field and const references
2008-04-11 18:07 [Bug c++/35909] New: ice for legal code dcb314 at hotmail dot com
` (8 preceding siblings ...)
2008-04-22 6:28 ` aoliva at gcc dot gnu dot org
@ 2008-04-22 6:29 ` aoliva at gcc dot gnu dot org
2008-05-27 5:49 ` aoliva at gcc dot gnu dot org
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2008-04-22 6:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from aoliva at gcc dot gnu dot org 2008-04-22 06:28 -------
Created an attachment (id=15507)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15507&action=view)
Patch that fixes the bug, under test
Here's a patch that I've come up with that fixes this bug. I've just started
testing it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35909
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/35909] [4.3/4.4 Regression] ICE with bit-field and const references
2008-04-11 18:07 [Bug c++/35909] New: ice for legal code dcb314 at hotmail dot com
` (9 preceding siblings ...)
2008-04-22 6:29 ` aoliva at gcc dot gnu dot org
@ 2008-05-27 5:49 ` aoliva at gcc dot gnu dot org
2008-05-27 6:04 ` aoliva at gcc dot gnu dot org
2008-05-27 6:04 ` aoliva at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2008-05-27 5:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from aoliva at gcc dot gnu dot org 2008-05-27 05:48 -------
Subject: Bug 35909
Author: aoliva
Date: Tue May 27 05:48:02 2008
New Revision: 135969
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=135969
Log:
gcc/cp/ChangeLog:
PR c++/35909
* call.c (convert_like_real): Convert bitfield to desired type
before creating temporary.
gcc/testsuite/ChangeLog:
PR c++/35909
* g++.dg/conversion/bitfield9.C: New.
Added:
trunk/gcc/testsuite/g++.dg/conversion/bitfield9.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35909
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/35909] [4.3/4.4 Regression] ICE with bit-field and const references
2008-04-11 18:07 [Bug c++/35909] New: ice for legal code dcb314 at hotmail dot com
` (10 preceding siblings ...)
2008-05-27 5:49 ` aoliva at gcc dot gnu dot org
@ 2008-05-27 6:04 ` aoliva at gcc dot gnu dot org
2008-05-27 6:04 ` aoliva at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2008-05-27 6:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from aoliva at gcc dot gnu dot org 2008-05-27 06:03 -------
Fixed.
--
aoliva at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35909
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/35909] [4.3/4.4 Regression] ICE with bit-field and const references
2008-04-11 18:07 [Bug c++/35909] New: ice for legal code dcb314 at hotmail dot com
` (11 preceding siblings ...)
2008-05-27 6:04 ` aoliva at gcc dot gnu dot org
@ 2008-05-27 6:04 ` aoliva at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2008-05-27 6:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from aoliva at gcc dot gnu dot org 2008-05-27 06:03 -------
Subject: Bug 35909
Author: aoliva
Date: Tue May 27 06:02:18 2008
New Revision: 135970
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=135970
Log:
gcc/cp/ChangeLog:
PR c++/35909
* call.c (convert_like_real): Convert bitfield to desired type
before creating temporary.
gcc/testsuite/ChangeLog:
PR c++/35909
* g++.dg/conversion/bitfield9.C: New.
Added:
branches/gcc-4_3-branch/gcc/testsuite/g++.dg/conversion/bitfield9.C
- copied unchanged from r135969,
trunk/gcc/testsuite/g++.dg/conversion/bitfield9.C
Modified:
branches/gcc-4_3-branch/gcc/cp/ChangeLog
branches/gcc-4_3-branch/gcc/cp/call.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35909
^ permalink raw reply [flat|nested] 14+ messages in thread