PR c++/8385
* g++.dg/ext/typeof5.C: New test.
PR c++/8385
* semantics.c (finish_typeof): Refine type-dependency check.
From-SVN: r66835
+2003-05-15 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/8385
+ * semantics.c (finish_typeof): Refine type-dependency check.
+
2003-05-13 Jason Merrill <jason@redhat.com>
* typeck.c (build_modify_expr): Don't always stabilize the lhs and
{
tree type;
- if (processing_template_decl)
+ if (type_dependent_expression_p (expr))
{
type = make_aggr_type (TYPEOF_TYPE);
TYPE_FIELDS (type) = expr;
+2003-05-15 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/8385
+ * g++.dg/ext/typeof5.C: New test.
+
2003-05-15 J"orn Rennecke <joern.rennecke@superh.com>
* gcc.c-torture/execute/builtins/string-asm-1.c: Take
--- /dev/null
+// { dg-options "" }
+
+int foo;
+
+template <class T> struct Base {};
+
+template <class T>
+struct Derived : public Base<typeof(foo)> {};