an adverse reaction after eating basil pesto may not be related to an allergic reaction. if you develop gas, bloating or an upset stomach you may be sensitive to some of the ingredients, such as garlic or olive oil. make an appointment for further evaluation to diagnose your condition.