[Bug c++/31498] [4.1 Regression] ICE with vector initializer in template
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu May 29 00:36:00 GMT 2008
------- 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
More information about the Gcc-bugs
mailing list