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

Build issue with MSVC + /permissive

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 4.3.0-rc1
    • Qt Creator 4.2.1, Qt Creator 4.3.0-beta1
    • Debugger
    • None
    • 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

        For Gerrit Dashboard: QTCREATORBUG-18142
        # Subject Branch Project Status CR V

        Activity

          People

            davschul David Schulz
            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