Okay, this has had only very minimal testing so
use at your own discretion. As always, it is your responsibility to evaluate this code's suitability for your purposes.
Code:
#!/bin/bash
find -type f > names.lst
while read name
do
bn="$( basename "$name" )"
name2="$( grep "$bn" names.lst | grep -v "$name" )"
if [ "$name2" != "" ]
then
echo "$name"
echo "$name2"
fi
done < names.lst
I bet 3 Internets that someone else will have a much more elegant solution for you by tomorrow.