By condensation of 2,6-dimethylaniline (I) with 8-pyrrolizineacetlc acid (II) by means of NaH in refluxing dioxane.