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

error messages on valid code

XMLWordPrintable

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes