Commit fe4c6b8f by Nathan Sidwell Committed by Nathan Sidwell

re PR c++/18981 (ICE in cp_parser_lookup_name)

cp:
	PR c++/18981
	* parser.c (cp_parser_lookup_name): Remove unneeded TYPENAME_TYPE
	flag setting.
testsuite:
	PR 18981
	* g++.dg/template/typename9.C: New test.

From-SVN: r92184
parent eef5d0d1
2004-12-15 Nathan Sidwell <nathan@codesourcery.com>
PR c++/18981
* parser.c (cp_parser_lookup_name): Remove unneeded TYPENAME_TYPE
flag setting.
2004-12-14 Mark Mitchell <mark@codesourcery.com>
PR c++/18738
......
......@@ -14190,10 +14190,6 @@ cp_parser_lookup_name (cp_parser *parser, tree name,
is dependent. */
type = make_typename_type (parser->scope, name, tag_type,
/*complain=*/1);
if (tag_type == enum_type)
TYPENAME_IS_ENUM_P (type) = 1;
else if (tag_type != typename_type)
TYPENAME_IS_CLASS_P (type) = 1;
decl = TYPE_NAME (type);
}
else if (is_template)
......
2004-12-15 Nathan Sidwell <nathan@codesourcery.com>
PR 18981
* g++.dg/template/typename9.C: New test.
2004-12-14 Mark Mitchell <mark@codesourcery.com>
PR c++/18738
......
// { dg-do compile }
// Copyright (C) 2004 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 14 Dec 2004 <nathan@codesourcery.com>
// PR 18981. ICE
// Origin: Andreas Schwab <schwab@suse.de>
template <class T>
struct tree {
struct iterator;
struct sibling_iterator {
friend struct tree<T>::iterator;
};
};
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