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

当输入 using namespace vector<int>; 时qtcreator就会退出

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • None
    • Qt Creator 3.5.1
    • C/C++/Obj-C++ Support
    • None
    • ubuntu16.04

    Description

      #include<iostream>
      using namespace std;
      #include<vector>
      class myvector:public vector<int>
      {
      public:
      void push_back()

      { cout<<"push back"<<endl; }

      };

      int main()

      { myvector v; using namespace vector<int>; v.vector<int>::push_back(3); }

       

      当输入  using namespace vector<int>;  时qtcreator就会退出

      Attachments

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

        Activity

          People

            kosjar Nikolai Kosjar
            yahui lyh-1988-2-6@163.com yahui
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes