OSDN Git Service

compiler: Error if importing same package twice with same name.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 May 2012 05:24:17 +0000 (05:24 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 May 2012 05:24:17 +0000 (05:24 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187143 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/go/gofrontend/gogo.cc

index 15c814b..f9982cc 100644 (file)
@@ -4946,11 +4946,6 @@ Bindings::new_definition(Named_object* old_object, Named_object* new_object)
       break;
 
     case Named_object::NAMED_OBJECT_PACKAGE:
-      if (new_object->is_package()
-         && (old_object->package_value()->name()
-             == new_object->package_value()->name()))
-       return old_object;
-
       break;
     }