re PR c++/27495 (ICE using "." instead of "->")
authorSteve Ellcey <sje@cup.hp.com>
Tue, 18 Jul 2006 17:01:19 +0000 (17:01 +0000)
committerSteve Ellcey <sje@gcc.gnu.org>
Tue, 18 Jul 2006 17:01:19 +0000 (17:01 +0000)
PR c++/27495
* search.c (adjust_result_of_qualified_name_lookup): Change
assert to part of if statement.

From-SVN: r115557

gcc/cp/ChangeLog
gcc/cp/search.c

index ebbbb6219f7ff9aae3a981637af1aa5da3949b81..6f0b96b5b4c8e2ad3960c30112b67915a8eaf71a 100644 (file)
@@ -1,3 +1,9 @@
+2006-07-18  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-17  Steve Ellcey  <sje@cup.hp.com>
 
        PR c++/28291
index 0682ff286bdb7f7cc2c3dfcb74fbf65066c0cdda..50e704fe366a5e5acfa715b80b614c38ff3edeaa 100644 (file)
@@ -1480,14 +1480,13 @@ adjust_result_of_qualified_name_lookup (tree decl,
                                        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