Charleroi-Dublin-Cork : I just don't see how you could go straight to the gate for the Cork flight, you have to change piers.
Besides, arriving from a Schengen- to a non-Schengen country, you have to go through a passport control. There is none at ORK when arriving from DUB.