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

Wrong warning appears when the decltype is used as a template parameter.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • Qt Creator 2.6.0-rc
    • C/C++/Obj-C++ Support
    • None
    • Windows7 minGW gcc 4.7.1

    Description

      template <class A>
      class B {
      
      };
      
      int main(){
      	int i;
      	B<decltype(i)> y; 
      // I got red wiggly line with the warning 
      // expected token ';' got 'decltype' 
      //
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              erikv Erik Verbruggen
              sungmin817 Sungmin Hwang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes