The invention relates to novel heterocyclic compounds of the formula in which all of the variables are as defined in the specification, to their preparation, to their medical use, in particular to their use in the treatment of cancer and neurodegenerative disorders, and to medicaments comprising them.