Total synthesis of (±)-lycorine from the endo-cycloadduct of 3,5-dibromo-2-pyrone and (E)-β-borylstyrene.