--- 799doxygen.cpp	2012-02-11 23:33:35.648246820 +0100
+++ doxygen.cpp	2012-02-11 23:33:18.848922020 +0100
@@ -3186,7 +3186,7 @@
                      )
                     );
               // otherwise, allow a duplicate global member with the same argument list
-              if (!found && gd && gd==md->getGroupDef())
+              if (!found && gd && gd==md->getGroupDef() && nsName==rnsName)
               {
                 // member is already in the group, so we don't want to add it again.
                 found=TRUE;
