Slovenia's gross domestic product (GDP) grew by a real 5.9% in the second quarter of 2007, quicker than the 4.7% annual rise reported for the same period a year earlier, the Statistics Office said on Monday.