Gastroparesis (and consequent bloating) also has many nonfunctional causes, the most important of which is autonomic visceral neuropathy due to diabetes; other causes include postviral infection, drugs with anticholinergic properties, and long-term opiate use.