Rudolf Carnap
He studied at the Barmen Gymnasium. Then, he attended the University of Jena, intending to write a thesis in physics. But he also studied philosophy and attended Frege's courses in mathematical logic.