public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/29734] New: [4.0/4.1/4.2/4.3 regression] ICE with vector in switch condition
@ 2006-11-05 23:23 reichelt at gcc dot gnu dot org
2006-11-05 23:24 ` [Bug c++/29734] " reichelt at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-11-05 23:23 UTC (permalink / raw)
To: gcc-bugs
The following invalid code snippet triggers an ICE since GCC 3.4.5 / 4.0.2:
=================================================
void foo(int __attribute__((vector_size(8))) i)
{
switch (i) {}
}
=================================================
bug.cc: In function 'void foo(int __vector__)':
bug.cc:3: internal compiler error: in perform_integral_promotions, at
cp/typeck.c:1588
Please submit a full bug report, [etc.]
--
Summary: [4.0/4.1/4.2/4.3 regression] ICE with vector in switch
condition
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, monitored
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29734
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/29734] [4.0/4.1/4.2/4.3 regression] ICE with vector in switch condition
2006-11-05 23:23 [Bug c++/29734] New: [4.0/4.1/4.2/4.3 regression] ICE with vector in switch condition reichelt at gcc dot gnu dot org
@ 2006-11-05 23:24 ` reichelt at gcc dot gnu dot org
2006-11-12 20:39 ` mmitchel at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-11-05 23:24 UTC (permalink / raw)
To: gcc-bugs
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29734
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/29734] [4.0/4.1/4.2/4.3 regression] ICE with vector in switch condition
2006-11-05 23:23 [Bug c++/29734] New: [4.0/4.1/4.2/4.3 regression] ICE with vector in switch condition reichelt at gcc dot gnu dot org
2006-11-05 23:24 ` [Bug c++/29734] " reichelt at gcc dot gnu dot org
@ 2006-11-12 20:39 ` mmitchel at gcc dot gnu dot org
2006-11-20 11:14 ` jakub at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-11-12 20:39 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29734
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/29734] [4.0/4.1/4.2/4.3 regression] ICE with vector in switch condition
2006-11-05 23:23 [Bug c++/29734] New: [4.0/4.1/4.2/4.3 regression] ICE with vector in switch condition reichelt at gcc dot gnu dot org
2006-11-05 23:24 ` [Bug c++/29734] " reichelt at gcc dot gnu dot org
2006-11-12 20:39 ` mmitchel at gcc dot gnu dot org
@ 2006-11-20 11:14 ` jakub at gcc dot gnu dot org
2006-11-21 9:42 ` jakub at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-11-20 11:14 UTC (permalink / raw)
To: gcc-bugs
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-11-20 11:14:09
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29734
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/29734] [4.0/4.1/4.2/4.3 regression] ICE with vector in switch condition
2006-11-05 23:23 [Bug c++/29734] New: [4.0/4.1/4.2/4.3 regression] ICE with vector in switch condition reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-11-20 11:14 ` jakub at gcc dot gnu dot org
@ 2006-11-21 9:42 ` jakub at gcc dot gnu dot org
2006-11-21 10:49 ` jakub at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-11-21 9:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jakub at gcc dot gnu dot org 2006-11-21 09:41 -------
Subject: Bug 29734
Author: jakub
Date: Tue Nov 21 09:41:27 2006
New Revision: 119044
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119044
Log:
PR c++/29734
* cp-tree.h (WANT_VECTOR): Define.
(WANT_ARITH): Add WANT_VECTOR.
* cvt.c (build_expr_type_conversion): Handle vector types.
* typeck.c (build_unary_op): Add WANT_VECTOR to
build_expr_type_conversion flags.
* g++.dg/conversion/simd4.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/conversion/simd4.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/cvt.c
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29734
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/29734] [4.0/4.1/4.2/4.3 regression] ICE with vector in switch condition
2006-11-05 23:23 [Bug c++/29734] New: [4.0/4.1/4.2/4.3 regression] ICE with vector in switch condition reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2006-11-21 9:42 ` jakub at gcc dot gnu dot org
@ 2006-11-21 10:49 ` jakub at gcc dot gnu dot org
2006-11-21 10:53 ` jakub at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-11-21 10:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jakub at gcc dot gnu dot org 2006-11-21 10:49 -------
Subject: Bug 29734
Author: jakub
Date: Tue Nov 21 10:49:02 2006
New Revision: 119051
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119051
Log:
PR c++/29734
* cp-tree.h (WANT_VECTOR): Define.
(WANT_ARITH): Add WANT_VECTOR.
* cvt.c (build_expr_type_conversion): Handle vector types.
* typeck.c (build_unary_op): Add WANT_VECTOR to
build_expr_type_conversion flags.
* g++.dg/conversion/simd4.C: New test.
Added:
branches/gcc-4_2-branch/gcc/testsuite/g++.dg/conversion/simd4.C
Modified:
branches/gcc-4_2-branch/gcc/cp/ChangeLog
branches/gcc-4_2-branch/gcc/cp/cp-tree.h
branches/gcc-4_2-branch/gcc/cp/cvt.c
branches/gcc-4_2-branch/gcc/cp/typeck.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29734
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/29734] [4.0/4.1/4.2/4.3 regression] ICE with vector in switch condition
2006-11-05 23:23 [Bug c++/29734] New: [4.0/4.1/4.2/4.3 regression] ICE with vector in switch condition reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2006-11-21 10:49 ` jakub at gcc dot gnu dot org
@ 2006-11-21 10:53 ` jakub at gcc dot gnu dot org
2006-11-21 10:54 ` jakub at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-11-21 10:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jakub at gcc dot gnu dot org 2006-11-21 10:53 -------
Subject: Bug 29734
Author: jakub
Date: Tue Nov 21 10:53:03 2006
New Revision: 119053
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119053
Log:
PR c++/29734
* cp-tree.h (WANT_VECTOR): Define.
(WANT_ARITH): Add WANT_VECTOR.
* cvt.c (build_expr_type_conversion): Handle vector types.
* typeck.c (build_unary_op): Add WANT_VECTOR to
build_expr_type_conversion flags.
* g++.dg/conversion/simd4.C: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/conversion/simd4.C
Modified:
branches/gcc-4_1-branch/gcc/cp/ChangeLog
branches/gcc-4_1-branch/gcc/cp/cp-tree.h
branches/gcc-4_1-branch/gcc/cp/cvt.c
branches/gcc-4_1-branch/gcc/cp/typeck.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29734
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/29734] [4.0/4.1/4.2/4.3 regression] ICE with vector in switch condition
2006-11-05 23:23 [Bug c++/29734] New: [4.0/4.1/4.2/4.3 regression] ICE with vector in switch condition reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2006-11-21 10:53 ` jakub at gcc dot gnu dot org
@ 2006-11-21 10:54 ` jakub at gcc dot gnu dot org
2006-11-21 11:02 ` [Bug c++/29734] [4.0 " jakub at gcc dot gnu dot org
2007-02-03 20:56 ` gdr at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-11-21 10:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jakub at gcc dot gnu dot org 2006-11-21 10:54 -------
Subject: Bug 29734
Author: jakub
Date: Tue Nov 21 10:54:11 2006
New Revision: 119054
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119054
Log:
PR c++/29734
* cp-tree.h (WANT_VECTOR): Define.
(WANT_ARITH): Add WANT_VECTOR.
* cvt.c (build_expr_type_conversion): Handle vector types.
* typeck.c (build_unary_op): Add WANT_VECTOR to
build_expr_type_conversion flags.
* g++.dg/conversion/simd4.C: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/template/static29.C
Modified:
branches/gcc-4_1-branch/gcc/cp/ChangeLog
branches/gcc-4_1-branch/gcc/cp/decl.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29734
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/29734] [4.0 regression] ICE with vector in switch condition
2006-11-05 23:23 [Bug c++/29734] New: [4.0/4.1/4.2/4.3 regression] ICE with vector in switch condition reichelt at gcc dot gnu dot org
` (6 preceding siblings ...)
2006-11-21 10:54 ` jakub at gcc dot gnu dot org
@ 2006-11-21 11:02 ` jakub at gcc dot gnu dot org
2007-02-03 20:56 ` gdr at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-11-21 11:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jakub at gcc dot gnu dot org 2006-11-21 11:01 -------
Fixed for 4.1/4.2/4.3.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |4.1.1
Known to work| |4.1.2 4.2.0 4.3.0
Summary|[4.0/4.1/4.2/4.3 regression]|[4.0 regression] ICE with
|ICE with vector in switch |vector in switch condition
|condition |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29734
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/29734] [4.0 regression] ICE with vector in switch condition
2006-11-05 23:23 [Bug c++/29734] New: [4.0/4.1/4.2/4.3 regression] ICE with vector in switch condition reichelt at gcc dot gnu dot org
` (7 preceding siblings ...)
2006-11-21 11:02 ` [Bug c++/29734] [4.0 " jakub at gcc dot gnu dot org
@ 2007-02-03 20:56 ` gdr at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-02-03 20:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from gdr at gcc dot gnu dot org 2007-02-03 20:55 -------
Fixed in GCC-4.1.2.
--
gdr at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|4.0.4 |4.1.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29734
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2007-02-03 20:56 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-05 23:23 [Bug c++/29734] New: [4.0/4.1/4.2/4.3 regression] ICE with vector in switch condition reichelt at gcc dot gnu dot org
2006-11-05 23:24 ` [Bug c++/29734] " reichelt at gcc dot gnu dot org
2006-11-12 20:39 ` mmitchel at gcc dot gnu dot org
2006-11-20 11:14 ` jakub at gcc dot gnu dot org
2006-11-21 9:42 ` jakub at gcc dot gnu dot org
2006-11-21 10:49 ` jakub at gcc dot gnu dot org
2006-11-21 10:53 ` jakub at gcc dot gnu dot org
2006-11-21 10:54 ` jakub at gcc dot gnu dot org
2006-11-21 11:02 ` [Bug c++/29734] [4.0 " jakub at gcc dot gnu dot org
2007-02-03 20:56 ` gdr 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).