Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-955 Fix template expansion
  3. QTCREATORBUG-297

Editor highlights usage of templates with non type parameters (enums, for example)

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Done
    • P2: Important
    • None
    • C/C++/Obj-C++ Support
    • None

    Description

      I create next code:

      //=====================================================
      enum ErrorCode {
      OK
      };

      template<ErrorCode code>
      struct ErrorText {};

      struct Text<OK> {};
      //=====================================================
      Each line contains Text<OK> highlighted with message: "`OK' is not a type name". But syntax is fully valid and compiles fine by gcc-4.

      Attachments

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

        Activity

          People

            erikv Erik Verbruggen
            b-s-a Sergey Belyashov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes