* parser.c (cp_parser_dependent_type_p): Fix thinko.
* g++.dg/init/array9.C: New test.
From-SVN: r60718
+2002-12-31 Mark Mitchell <mark@codesourcery.com>
+
+ * parser.c (cp_parser_dependent_type_p): Fix thinko.
+
2002-12-31 Nathan Sidwell <nathan@codesourcery.com>
* class.c (modify_vtable_entry): Remove unused variable.
value-dependent. */
if (TREE_CODE (type) == ARRAY_TYPE)
{
- if (TYPE_DOMAIN (TREE_TYPE (type))
+ if (TYPE_DOMAIN (type)
&& ((cp_parser_value_dependent_expression_p
(TYPE_MAX_VALUE (TYPE_DOMAIN (type))))
|| (cp_parser_type_dependent_expression_p
--- /dev/null
+struct S {
+};
+
+extern S i[];
+
+void g (S*);
+
+template <typename T>
+void f () {
+ g (&i[2]);
+}
+