51 As regards the consequences of failure to observe the principle of equal treatment in a situation such as that in the main proceedings, it must be recalled that, where discrimination contrary to EU law has been established, as long as measures reinstating equal treatment have not been adopted, observance of the principle of equality can be ensured only by granting to persons within the disadvantaged category the same advantages as those enjoyed by persons within the favoured category, the latter arrangements, for want of the correct application of EU law, being the only valid point of reference remaining (see Case C‐18/95 Terhoeve [1999] ECR I‐345, paragraph 57 and the case‐law cited).
51 Attiecībā uz vienlīdzīgas attieksmes principa neievērošanas sekām tādā kā pamata lietā ir jāatgādina, ka gadījumos, kad tiek konstatēta diskriminācija, kas ir pretrunā ar Kopienu tiesībām, un kamēr nav veikti pasākumi, kas atjauno vienlīdzīgu attieksmi, vienlīdzības principa ievērošanu var nodrošināt, vienīgi piešķirot personām nelabvēlīgā stāvoklī tās pašas priekšrocības, kādas ir personām privileģētā stāvoklī, – sistēma, kas nepareizas Savienības tiesību piemērošanas dēļ ir vienīgā derīgā atsauces sistēma (skat. 1999. gada 26. janvāra spriedumu lietā C‐18/95 Terhoeve, Recueil, I‐345. lpp., 57. punkts un tajā minētā judikatūra).EurLex-2 EurLex-2