errors aren't reported until the optree is actually generated