One who blessed on milk within six hours of meat, and remembered at once, should taste a little so that his blessing not be in vain. As the Rambam wrote, a blessing in vain is a Torah prohibition. As Yabia Omer wrote, there is a safek sefeika, and the food itself is entirely permitted, and only the time forbids it.