The invention relates to novel phosphoinositide 3-kinase (PI3K) and mammalian target of rapamycin (mTOR) inhibitor compounds of formula (I) and (II), which are conformationally restricted, and for which the meaning of the substituents are listed in the description. Preferred compounds are those wherein X isoxygen, R