It's considered a dual role and can get a professor fired. That said, I had a thing for my dissertation advisor--but he was married and my professor. When I got a chance to hug him after I'd finished my degree, he had B.O.!
Dream from a far until you're no longer a student.