There are several sub genres of dogwood tree that are mildly toxic to people but are eaten by birds. By the way, the name has nothing to do with dogs but with daggers made from the wood of the tree.
If you are not absolutely sure what fruit is edible,I suggest stay away completely.