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

Segfault for creation getters and setters for vectors in class.

    XMLWordPrintable

Details

    • Linux/X11

    Description

      Hello, 

      I have a problem with generating getters and setters for vectors in a class.

      In case of trying for a field in class Bar, it receives segmentation and closure of the whole qtcreator.

      #include <iostream>
      #include <vector>
      
      using namespace std;
      
      class Foo
      {
          double data;
      };
      
      class Bar
      {
          std::vector<double> One;
          std::vector<Foo>    Two;
      };
      
      
      int main()
      {
          cout << "Hello World!" << endl;
          return 0;
      }
      
      

      In the terminal from which QtCreator was launched, it only receives:

      Segmentation fault (core dumped)
      
      

      I tried to disable all plugins. Did not help.

       

      After commenting  the line:

      #include <vector>

      It is possible to create setters and getters, but for obvious reasons you cannot compile a project.

       

      I had no problems with this in earlier versions of QtCreator.

       

       

       

      Attachments

        Activity

          People

            kandeler Christian Kandeler
            mkasztelan mkasztelan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: