PR c++/8442, c++/8806 * decl.c (qualify_lookup): Accept TEMPLATE_DECL if types are preferred. (check_elaborated_type_specifier): Add allow_template_p parameter. Check tag mismatch and class template. (xref_tag): Add template_header_p parameter. Add assertion that name is an IDENTIFIER_NODE. Remove implicit typename warning. Simplify lookup process if globalize is true. (cxx_init_decl_processing): Adjust call to xref_tag. (xref_tag_from_type): Likewise. * decl2.c (handle_class_head): Likewise. * parser.c (cp_parser_elaborated_type_specifier, cp_parser_class_head): Likewise. * rtti.c (init_rtti_processing, build_dynamic_cast1, tinfo_base_init, emit_support_tinfos): Likewise. * class.c (is_base_of_enclosing_class): Remove. * pt.c (convert_template_argument): Don't accept RECORD_TYPE as template template argument. * cp-tree.h (xref_tag): Adjust declaration. (is_base_of_enclosing_class): Remove. * NEWS: Document template template argument change. * g++.dg/template/elab1.C: Likewise. * g++.dg/template/type2.C: Likewise. * g++.dg/template/ttp3.C: Adjust expected error message. * g++.old-deja/g++.law/visibility13.C: Likewise. * g++.old-deja/g++.niklas/t135.C: Likewise. * g++.old-deja/g++.pt/ttp41.C: Likewise. * g++.old-deja/g++.pt/ttp43.C: Use qualified name for template template argument. * g++.old-deja/g++.pt/ttp44.C: Likewise. From-SVN: r70048
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| README | Loading commit data... | |
| t113.C | Loading commit data... | |
| t114.C | Loading commit data... | |
| t115.C | Loading commit data... | |
| t118.C | Loading commit data... | |
| t119.C | Loading commit data... | |
| t120.C | Loading commit data... | |
| t121.C | Loading commit data... | |
| t122.C | Loading commit data... | |
| t123.C | Loading commit data... | |
| t124.C | Loading commit data... | |
| t125.C | Loading commit data... | |
| t126.C | Loading commit data... | |
| t127.C | Loading commit data... | |
| t128.C | Loading commit data... | |
| t129.C | Loading commit data... | |
| t130.C | Loading commit data... | |
| t131.C | Loading commit data... | |
| t132.C | Loading commit data... | |
| t133.C | Loading commit data... | |
| t134.C | Loading commit data... | |
| t135.C | Loading commit data... | |
| t136.C | Loading commit data... | |
| t137.C | Loading commit data... | |
| t138.C | Loading commit data... | |
| t139.C | Loading commit data... | |
| t140.C | Loading commit data... | |
| t141.C | Loading commit data... |