Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-1315

Wrong syntax error with BOOST_FOREACH()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P3: Somewhat important
    • None
    • Qt Creator 1.3.1, Qt Creator 4.3.0
    • C/C++/Obj-C++ Support
    • None
    • Qt v4.6.1
      kubuntu 8.04

    Description

      QtCreator reports a C++ syntax error when using the macro BOOST_FOREACH() like in this example :

      #include <boost/foreach.hpp>
      #include <QtDebug>
      
      int main()
      {
        int values[5];
        BOOST_FOREACH(int i, values)
          qDebug() << i;
        return 0;
      }
      

      This is valid C++ source code however QtCreator wave-underlines the body of BOOST_FOREACH() and reports the syntax error (as a tooltip) expected token `)' got `='.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kosjar Nikolai Kosjar
            cerf Hugues Delorme
            Votes:
            5 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes