Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-47066

Segmentation fault with QStringBuilder

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.4.1
    • Core: Other
    • None
    • Ubuntu 15.04 64-bit
      GCC 4.9.1
      c++11

      I using Ubuntu 15.04 with Qt 5.4.1 (from repo) and GCC 4.9.1.
      When I running the following example code, then I get a segfault:

      #include <QStringBuilder>
      ...
      
      QTextStream(stdout) << [] {
                  QString a('a'), b('b');
                  return a % b;
              }() << '\n';
      

      But if I replace the '%' with '+', the problem is gone.
      Is this a bug or something else?

        1. qstringbuilder.h.diff
          2 kB
          Samuel Dowling
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            studiosus Vladimir Belyavsky
            Kendek KrisztiƔn Kende
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes