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

Template argument marked as "not a type name" when defined as primitive type

    XMLWordPrintable

Details

    • 22d75c4c2075a99c0dc39513837ed6441440aad6

    Description

      In the following code, the declaration of foo() is marked with the message "M is not a type name":

      template<int N>
      class X {};
      
      template<int M>
      class Y
      {
         void foo(const X<M>& test);
      };
      

      When M is defined as class or typename instead of as primitive type, the message disappears.

      Reported on the mailing list: http://lists.trolltech.com/pipermail/qt-creator/2009-November/005190.html

      Attachments

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

        Activity

          People

            raggi Roberto Raggi
            lindeije Thorbjørn Lindeijer (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes