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

Incorrect syntax checking at constructors try..catch blocks

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • Qt Creator 4.10.0
    • Qt Creator 2.3.0
    • Editors
    • None

    Description

      The syntax checking system will report en error and will underline the code block with message "expacted a declaration" at this code:

      class TestClass{
      public:
      TestClass() try:
      pi(new int(0)){}
      catch(...){}

      private:
      std::auto_ptr<int> pi;
      };

      Attachments

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

        Activity

          People

            erikv Erik Verbruggen
            haysaycheese Dima Chizevskiy
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes