[cfe-dev] Clang: QT header compilation error

Sujit Kamthe Sujit.Kamthe at kpitcummins.com
Mon Nov 19 05:02:36 PST 2012


Hi,
While I was running clang on a QT code, It flagged a compilation error in a standard QT header file.
include\QtCore/qvector.h:565:12: error: missing 'typename'
      prior to dependent type name 'QVector<T>::iterator'
Q_TYPENAME QVector<T>::iterator QVector<T>::insert(iterator before,...
           ^~~~~~~~~~~~~~~~~~~~
include\QtCore/qvector.h:599:12: error: missing 'typename'
      prior to dependent type name 'QVector<T>::iterator'
Q_TYPENAME QVector<T>::iterator QVector<T>::erase(iterator abegin,...
           ^~~~~~~~~~~~~~~~~~~~


Attaching the header file along.
Please help.

Regards,
Sujit Kamthe

[buildbox_logo]
Productivity & FE | Automotive and Engineering SBU | KPITCummins Infosystems Ltd|Board: +91 20 66525000 | Extn:3102 |Mobile:7709076120

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121119/4568a26f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 4082 bytes
Desc: image001.jpg
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121119/4568a26f/attachment.jpg>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: qvector.h
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121119/4568a26f/attachment.h>


More information about the cfe-dev mailing list