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

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

      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' 
      //
      }
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes