Unpopular Opinion:
I think Harry and Tom are equally as complex as Dumbledore and Snape. While Dumbledore and Snape's characters were so developed and had some very obvious morally grey spots here and there, She-Who-Must-Not-Be-Named didn't even begin to show some equally grey spots in Harry and Tom.
Had the Harry Potter books gone in a different direction where she went a little more into Harry's personality rather than him just being good and righteous like a good little hero or even just shown more of how the veritable horrors he endured during his formative years (Between neglect, accidental Murder, Lots of near-deaths, etc...) affected him, it would honestly be my dream come true. Same with Tom. He has like two personality traits which are evil and smart.
ALSO, NO ONE CAN CONVINCE ME THAT TOM MARVOLO RIDDLE ISN'T QUEERCODED. Wtf JK, not cool.
Actually, almost every single one of JK's villains (Specifically in Harry Potter) are queer coded. Case in point, Draco Malfoy, Lucious Malfoy, Bellatrix Lestrange and Alecto Carrow. (Actually though, someone take a look at a picture of Alecto Carrow and tell me she doesn't look like a butch lesbian)