There are many types of shrubs that have red or blue fruit and some that have orange, pink or purple fruit. If yellow fruit is what you are looking for, however, the list is quite a bit shorter. The yellow berries produced by these shrubs is non-edible for humans but very much appreciated by birds and other wildlife.
Duranta erecta, commonly known as golden dewdrop, pigeonberry or skyflower, produces small yellow non-edible berries. This shrub is evergreen in USDA Hardiness Zones of 9 to 11. It can be grown as an annual in cooler zones but will not likely produce its autumn berries before it is killed by frost. In warm winter locations where it is hardy, it grows to a mature height and width of 18 feet. The long gracefully arching branches sometimes develop thorns as the shrub ages. It can be trellised or allowed to sprawl. The clusters of purple, light blue or white flowers bloom on racemes that can be up to 6 inches long. A sunny location is best for this shrub but it can also be grown in partial shade. The soil can be acidic to slightly alkaline. This shrub is also somewhat drought- and salt-tolerant.
Ilex x meserveae
Ilex x meserveae "Mesgolg" or "Golden Girl" is a type of blue holly shrub that produces yellow berries which are not edible. Most holly species are dioecious which means there are male and female plants. There must be a male holly planted nearby for Golden Girl to produce yellow berries. This evergreen shrub has dark blue-green foliage and grows to a mature height of 8 to 10 feet with a pyramidal form. It produces small white flowers in the spring that are not especially showy or fragrant. The male pollinator hollies generally bloom more profusely than the females. These shrubs can be planted in partial shade but bloom more profusely and produce berries more abundantly in full sun. They require soil that drains well and has an acidic pH. Golden Girl is hardy in zones 4 to 8.
Ilex verticillata "Chrysocarpa" is another type of holly that produces yellow non-edible berries. This shrub is deciduous and grows to a mature height of 5 feet. It produces small white flowers in May. The yellow berries ripen in the fall and remain on the shrub throughout the winter. As with Golden Girl, a male pollinator must be planted nearby. Ilex verticillata "Jim Dandy" is a suitable pollinator for Chrysocarpa as they bloom at approximately the same time in the spring. Jim Dandy also grows to approximately 5 feet tall. Chrysocarpa and Jim Dandy also can be grown in partial shade but are more showy in full sun. They also require acidic soil that drains well. These hollies are hardy in zones 3 to 9.
"Gold Rush", "Golden Charmer", "Soleil d Or" and "Teton" are Pyracantha coccinea cultivars that produce yellow non-edible fruit. Commonly called firethorn, this evergreen shrub can grow anywhere from 6 to 20 feet tall, depending on the cultivar and growing conditions. The stems can be tied to a trellis or some other support structure or the shrub can be left to sprawl. Caution should be exercised when working with this shrub as it has 3/4-inch thorns along the branches. It blooms profusely in the spring, producing white flowers that have an unpleasant fragrance. The yellow berries ripen in the fall and remain on the shrub throughout the winter. Firethorn shrubs can be grown in full sun or partial shade and are drought tolerant. They are hardy in zones 5 to 9.