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

Crashes when typing ":"(colon) symbol

    XMLWordPrintable

Details

    Description

      Have class :

       

      template <typename prec, std::size_t dims>
      class dcel
      {
          using pt = Point<prec, dims>;
      public:
          std::vector<pt> pos;
          std::vector<std::size_t> p1, p2, f1, f2;
          std::vector<std::size_t> v1, v2;
      
          dcel();
      ...

      If I try to type ":"symbol:

       

       

      template <typename prec, std::size_t dims>
      class dcel
      {
          using pt = Point<prec, dims>;
      public:
          std::vector<pt> pos;
          std::vector<std::size_t> p1, p2, f1, f2;
          std::vector<std::size_t> v1, v2;
          : <-- there
          dcel();
      ...
      

      the program crashes.

       

      But if I modify class constructor an try to type again, no problems:

       

      template <typename prec, std::size_t dims>
      class dcel
      {
          using pt = Point<prec, dims>;
      public:
          std::vector<pt> pos;
          std::vector<std::size_t> p1, p2, f1, f2;
          std::vector<std::size_t> v1, v2;
      
          dcel() { } <-- there
      ...
      

      The problem is in "dcel.h" file. Sending you the folder with a project.

       

      Attachments

        1. backtrace.txt
          58 kB
        2. dcel2.tar.gz
          4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kosjar Nikolai Kosjar
            yamal4321 Ivan Glushkov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes