Turns out << has lower priority than +. Fixed read error.