3-Formylchromen-4-one (II) was prepared by Vilsmeier formylation of 2'-hydroxyacetophenone (I) with POCl3 and DMF. Cyclization of (II) with guanidine carbonate (III) in refluxing EtOH gave rise to the benzopyranopyrimidine (IV). This was finally condensed with piperidine (V) in the presence of TiCl4 to furnish the title compound.