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

error messages on valid code

    XMLWordPrintable

Details

    Description

      The following code:

      #include <sstream>
      int main() {
          std::stringstream sstr;
          sstr << "Hello, World!\n"
      }

      is marked as an error (full message is attached):

      Semantic Issue
      5:10: error: invalid operands to binary expression ('std::stringstream' (aka 'basic_stringstream<char>') and 'const char *')
      ...

      However it compiles without any errors.

      Attachments

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

        Activity

          People

            kosjar Nikolai Kosjar
            gbug Gena Bug
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes