Radiative proton capture above the giant-dipole resonance in12C