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

Some compiler errors not parsed

    XMLWordPrintable

Details

    • 8bbad43019af98e342d6a5b311016fa20198e4cf

    Description

      Last line (within this context) in

      #define QT_NO_CAST_FROM_ASCII
      
      #include <QString>
      
      void foo()
      {
          QString bar("foo");
      }
      
      In file included from /usr/include/qt4/QtCore/QString:1:0,
                       from main.cpp:3:
      /usr/include/qt4/QtCore/qstring.h: In function 'void foo()':
      /usr/include/qt4/QtCore/qstring.h:597:5: error: 'QString::QString(const char*)' is private
      main.cpp:7:22: error: within this context
      make: *** [main.o] Error 1

      Result:

      /home/shaneh/dev/test/main.cpp:3: from main.cpp:3:
      /usr/include/qt4/QtCore/qstring.h:-1: In function 'void foo()':
      /usr/include/qt4/QtCore/qstring.h:597: error: 'QString::QString(const char*)' is private

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-9195
        # Subject Branch Project Status CR V

        Activity

          People

            hunger Tobias Hunger
            orgads Orgad Shaneh
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes