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

try catch in constructor

    XMLWordPrintable

Details

    • 2ead48fb2674c26aede63382277e9647f93e6586

    Description

      class Class
      {
         int a;
      public:
         Class(int b) try : a(b)
         {
      
         } catch (int& error)
          {
      
          }
      };
      

      Qt Creator underlines the try and the constructor body red, claiming "expected a declaration".

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-9064
        # Subject Branch Project Status CR V

        Activity

          People

            erikv Erik Verbruggen
            a1ien_n3t Ilya Averyanov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes