Commit dffbbe80 by Mark Mitchell Committed by Mark Mitchell

re PR c++/8385 (typeof(...) as template arg)

	PR c++/8385
	* g++.dg/ext/typeof5.C: New test.

	PR c++/8385
	* semantics.c (finish_typeof): Refine type-dependency check.

From-SVN: r66835
parent 411f7850
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
......
......@@ -2163,7 +2163,7 @@ finish_typeof (expr)
{
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
......
// { dg-options "" }
int foo;
template <class T> struct Base {};
template <class T>
struct Derived : public Base<typeof(foo)> {};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment