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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92184
138bc75d-0d04-0410-961f-
82ee72b054a4
+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
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
--- /dev/null
+// { 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;
+ };
+};