Compounds of formula I in free or salt form, wherein R1, R2, R3, R4 and R5 have the meanings as indicated in the specification, are useful for treating diseases mediated by phosphatidylinositol 3-kinase. Pharmaceutical compositions that contain the compounds and processes for preparing the compounds are also described.