It is not a european law. There is a european regulation that has to be put into national law and those national laws differ. There might be some caveats to allow some very specific cases where age discrimination is legal. In germany it is for example legal to have an upper age limits for ATCO Trainees.