While compiling a project in Visual Studio 2008, I am getting the following error

c:\qwt-5.2.3\include\qwt_plot_item.h(114) : fatal error C1202: recursive type or function dependency context too complex

The corresponding line is
Qt Code:
  1. explicit QwtPlotItem(const QwtText &title = QwtText());
To copy to clipboard, switch view to plain text mode 

In QWT 6.1, the compilation just fails at that line without error message. In 5.2.3, I am getting the above error message. For now, I am commenting that line and able to compile. Any idea how to solve the actual issue?
Searching in google, I found that the C1202 error is related to optimization setings. But could not solve.