public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/31498] [4.1/4.2/4.3 Regression] ICE with vector initializer in template
2007-04-06 21:57 [Bug c++/31498] New: [4.1/4.2/4.3 Regression] ICE with vector initializer in template pinskia at gcc dot gnu dot org
@ 2007-04-06 21:57 ` pinskia at gcc dot gnu dot org
2007-04-15 22:14 ` mmitchel at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-04-06 21:57 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |3.4.0 4.0.2 4.1.0 4.2.0
| |4.3.0
Known to work| |3.3.3
Target Milestone|--- |4.1.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31498
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/31498] New: [4.1/4.2/4.3 Regression] ICE with vector initializer in template
@ 2007-04-06 21:57 pinskia at gcc dot gnu dot org
2007-04-06 21:57 ` [Bug c++/31498] " pinskia at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-04-06 21:57 UTC (permalink / raw)
To: gcc-bugs
Testcase:
typedef __attribute__((__vector_size__(16) )) unsigned char vec_uchar16;
template<typename Tx, typename Ty, typename Tz, typename Tw>
void permute(Tx x, Ty y, Tz z, Tw w)
{
const vec_uchar16 pattern =
(vec_uchar16){4*x, 4*x+1, 4*x+2, 4*x+3,
4*y, 4*y+1, 4*y+2, 4*y+3,
4*z, 4*z+1, 4*z+2, 4*z+3,
4*w, 4*w+1, 4*w+2, 4*w+3};
}
int main()
{
permute(1,2,3,4);
return 0;
}
--
Summary: [4.1/4.2/4.3 Regression] ICE with vector initializer in
template
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31498
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/31498] [4.1/4.2/4.3 Regression] ICE with vector initializer in template
2007-04-06 21:57 [Bug c++/31498] New: [4.1/4.2/4.3 Regression] ICE with vector initializer in template pinskia at gcc dot gnu dot org
2007-04-06 21:57 ` [Bug c++/31498] " pinskia at gcc dot gnu dot org
@ 2007-04-15 22:14 ` mmitchel at gcc dot gnu dot org
2007-04-20 18:36 ` janis 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 @ 2007-04-15 22:14 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31498
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/31498] [4.1/4.2/4.3 Regression] ICE with vector initializer in template
2007-04-06 21:57 [Bug c++/31498] New: [4.1/4.2/4.3 Regression] ICE with vector initializer in template pinskia at gcc dot gnu dot org
2007-04-06 21:57 ` [Bug c++/31498] " pinskia at gcc dot gnu dot org
2007-04-15 22:14 ` mmitchel at gcc dot gnu dot org
@ 2007-04-20 18:36 ` janis at gcc dot gnu dot org
2007-04-20 19:30 ` [Bug c++/31498] [4.1 " pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: janis at gcc dot gnu dot org @ 2007-04-20 18:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from janis at gcc dot gnu dot org 2007-04-20 19:35 -------
This starts passing for me between 2007-03-10 and 2007-03-20. Andrew, if it
fails for you with a later mainline than that, perhaps it's an intermittent
failure rather than a regression.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31498
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/31498] [4.1 Regression] ICE with vector initializer in template
2007-04-06 21:57 [Bug c++/31498] New: [4.1/4.2/4.3 Regression] ICE with vector initializer in template pinskia at gcc dot gnu dot org
` (2 preceding siblings ...)
2007-04-20 18:36 ` janis at gcc dot gnu dot org
@ 2007-04-20 19:30 ` pinskia at gcc dot gnu dot org
2007-04-23 22:28 ` janis at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-04-20 19:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-04-20 20:30 -------
I was testing at the time "4.3.0 20070306" and I tested with yesterday's trunk
and it passes. It also works on the 4.2 branch as of "4.2.0 20070415".
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|3.4.0 4.0.2 4.1.0 4.2.0 |3.4.0 4.0.2 4.1.0 4.2.0
|4.3.0 |
Known to work|3.3.3 |3.3.3 4.3.0
Summary|[4.1/4.2/4.3 Regression] ICE|[4.1 Regression] ICE with
|with vector initializer in |vector initializer in
|template |template
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31498
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/31498] [4.1 Regression] ICE with vector initializer in template
2007-04-06 21:57 [Bug c++/31498] New: [4.1/4.2/4.3 Regression] ICE with vector initializer in template pinskia at gcc dot gnu dot org
` (3 preceding siblings ...)
2007-04-20 19:30 ` [Bug c++/31498] [4.1 " pinskia at gcc dot gnu dot org
@ 2007-04-23 22:28 ` janis at gcc dot gnu dot org
2007-04-27 16:23 ` jakub at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: janis at gcc dot gnu dot org @ 2007-04-23 22:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from janis at gcc dot gnu dot org 2007-04-23 23:28 -------
A regression hunt on powerpc-linux for mainline shows that it was fixed by this
patch:
http://gcc.gnu.org/viewcvs?view=rev&rev=122829
r122829 | mmitchel | 2007-03-12 00:26:39 +0000 (Mon, 12 Mar 2007)
That patch was added to the 4.2 branch at the same time, and the test now
passes on that branch.
The failure still occurs on the 4.1 branch as of 2007-04-19.
--
janis at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mmitchel at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31498
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/31498] [4.1 Regression] ICE with vector initializer in template
2007-04-06 21:57 [Bug c++/31498] New: [4.1/4.2/4.3 Regression] ICE with vector initializer in template pinskia at gcc dot gnu dot org
` (4 preceding siblings ...)
2007-04-23 22:28 ` janis at gcc dot gnu dot org
@ 2007-04-27 16:23 ` jakub at gcc dot gnu dot org
2007-12-27 17:10 ` reichelt 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 @ 2007-04-27 16:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jakub at gcc dot gnu dot org 2007-04-27 17:23 -------
Yeah, this is fixed by the PR31038 patch and that patch fixes this even
on gcc-4_1-branch. But the original PR31038 testcase still ICEs on 4.1 even
with PR31038 patch.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31498
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/31498] [4.1 Regression] ICE with vector initializer in template
2007-04-06 21:57 [Bug c++/31498] New: [4.1/4.2/4.3 Regression] ICE with vector initializer in template pinskia at gcc dot gnu dot org
` (5 preceding siblings ...)
2007-04-27 16:23 ` jakub at gcc dot gnu dot org
@ 2007-12-27 17:10 ` reichelt at gcc dot gnu dot org
2008-05-29 0:36 ` pinskia at gcc dot gnu dot org
2008-07-04 16:05 ` jsm28 at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-12-27 17:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from reichelt at gcc dot gnu dot org 2007-12-27 17:10 -------
Confirmed.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |monitored
Known to fail|3.4.0 4.0.2 4.1.0 4.2.0 |3.4.0 3.4.6 4.0.0 4.0.4
| |4.1.0 4.1.1 4.1.2
Known to work|3.3.3 4.3.0 |3.3 3.3.6 4.2.0 4.2.2 4.3.0
Last reconfirmed|0000-00-00 00:00:00 |2007-12-27 17:10:04
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31498
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/31498] [4.1 Regression] ICE with vector initializer in template
2007-04-06 21:57 [Bug c++/31498] New: [4.1/4.2/4.3 Regression] ICE with vector initializer in template pinskia at gcc dot gnu dot org
` (6 preceding siblings ...)
2007-12-27 17:10 ` reichelt at gcc dot gnu dot org
@ 2008-05-29 0:36 ` pinskia at gcc dot gnu dot org
2008-07-04 16:05 ` jsm28 at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-05-29 0:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from pinskia at gcc dot gnu dot org 2008-05-29 00:36 -------
Index: pt.c
===================================================================
--- pt.c (revision 2500)
+++ pt.c (working copy)
@@ -12464,6 +12464,20 @@ value_dependent_expression_p (tree expre
return value_dependent_expression_p (args);
}
+
+ case CONSTRUCTOR:
+ {
+ unsigned HOST_WIDE_INT idx;
+ tree value;
+ VEC(constructor_elt,gc) *v = CONSTRUCTOR_ELTS (expression);
+
+ FOR_EACH_CONSTRUCTOR_VALUE (v, idx, value)
+ {
+ if (value_dependent_expression_p (value))
+ return true;
+ }
+ return false;
+ }
default:
/* A constant expression is value-dependent if any subexpression is
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31498
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/31498] [4.1 Regression] ICE with vector initializer in template
2007-04-06 21:57 [Bug c++/31498] New: [4.1/4.2/4.3 Regression] ICE with vector initializer in template pinskia at gcc dot gnu dot org
` (7 preceding siblings ...)
2008-05-29 0:36 ` pinskia at gcc dot gnu dot org
@ 2008-07-04 16:05 ` jsm28 at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 16:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from jsm28 at gcc dot gnu dot org 2008-07-04 16:04 -------
Closing 4.1 branch.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Known to fail|3.4.0 3.4.6 4.0.0 4.0.4 |3.4.0 3.4.6 4.0.0 4.0.4
|4.1.0 4.1.1 4.1.2 |4.1.0 4.1.1 4.1.2 4.1.3
Resolution| |FIXED
Target Milestone|4.1.3 |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31498
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2008-07-04 16:05 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-06 21:57 [Bug c++/31498] New: [4.1/4.2/4.3 Regression] ICE with vector initializer in template pinskia at gcc dot gnu dot org
2007-04-06 21:57 ` [Bug c++/31498] " pinskia at gcc dot gnu dot org
2007-04-15 22:14 ` mmitchel at gcc dot gnu dot org
2007-04-20 18:36 ` janis at gcc dot gnu dot org
2007-04-20 19:30 ` [Bug c++/31498] [4.1 " pinskia at gcc dot gnu dot org
2007-04-23 22:28 ` janis at gcc dot gnu dot org
2007-04-27 16:23 ` jakub at gcc dot gnu dot org
2007-12-27 17:10 ` reichelt at gcc dot gnu dot org
2008-05-29 0:36 ` pinskia at gcc dot gnu dot org
2008-07-04 16:05 ` jsm28 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).