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

Segfault when trying to call a method through 'this'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • Qt Creator 2.7.2
    • Qt Creator 2.7.0, Qt Creator 2.7.2, Qt Creator 2.8.0-beta, Qt Creator 3.0.0-rc1
    • None
    • qt-creator 2.7.1 (binary downloaded from the site) and boost1.49 on debian testing amd64
    • 80e1ae805982c8dd9b34903accb9ed3449337a63

    Description

      Hi! And sorry for ambiguous summary

      I've noticed a crash while editing next code:

      #include <boost/python.hpp>
      struct Abstract
      {
          virtual ~Abstract() {}
          virtual int f(int a, int b) const = 0;
      };
      using namespace boost::python;
      struct AbstractWrapper : Abstract, wrapper<Abstract>
      {
          int f(int a, int b) const
          {
            this // <---- after typing dot or arrow here qtc immediately crashes
          }
      };
      

      Attachments

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

        Activity

          People

            erikv Erik Verbruggen
            genacid gena
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes