Children's clothing producer and retailer OshKosh B'Gosh Inc on Wednesday revealed it swung to a second quarter loss as it was forced to slash prices to stimulate sales in a tough trading environment.