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

Build issue with MSVC + /permissive

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: Qt Creator 4.2.1, Qt Creator 4.3.0-beta1
    • Fix Version/s: Qt Creator 4.3.0-rc1
    • Component/s: Debugger
    • Labels:
      None
    • Commits:
      7fb81d94f40b8a9538c4521244396b5772e1cfae

      Description

      In 'commandTokens' (see 'src\libs\qtcreatorcdbext\qtcreatorcdbextension.cpp'), it has the following code:

      typedef StringContainer::iterator ContainerIterator;

      StringContainer is template parameter, so it is dependent.
      MSVC incorrectly allows the code, but 'typename' is required to indicate 'iterator' to be a type.

      The fix is:

      typedef typename StringContainer::iterator ContainerIterator;

        Attachments

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

          Activity

            People

            Assignee:
            davschul David Schulz
            Reporter:
            xiangfan Xiang Fan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes