PR c++/27495
* search.c (adjust_result_of_qualified_name_lookup): Change
assert to part of if statement.
* g++.dg/other/pr27495.C: New.
From-SVN: r115627
+2006-07-20 Steve Ellcey <sje@cup.hp.com>
+
+ PR c++/27495
+ * search.c (adjust_result_of_qualified_name_lookup): Change
+ assert to part of if statement.
+
2006-07-18 Steve Ellcey <sje@cup.hp.com>
PR c++/28304
tree context_class)
{
if (context_class && context_class != error_mark_node
+ && CLASS_TYPE_P (context_class)
&& CLASS_TYPE_P (qualifying_scope)
&& DERIVED_FROM_P (qualifying_scope, context_class)
&& BASELINK_P (decl))
{
tree base;
- gcc_assert (CLASS_TYPE_P (context_class));
-
/* Look for the QUALIFYING_SCOPE as a base of the CONTEXT_CLASS.
Because we do not yet know which function will be chosen by
overload resolution, we cannot yet check either accessibility
+2006-07-20 Steve Ellcey <sje@cup.hp.com>
+
+ PR c++/27495
+ * g++.dg/other/pr27495.C: New.
+
2006-07-18 Steve Ellcey <sje@cup.hp.com>
PR c++/28304
--- /dev/null
+
+// Test to make sure we do not ICE on this invalid program.
+
+struct A
+{
+ template<int> void foo();
+ void bar() { this.A::foo<0>(); } // { dg-error "" }
+};