Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-88564

3rd party masm: error: conversion from 'int' to 'QChar' is ambiguous

    XMLWordPrintable

Details

    Description

      While trying to build on Windows with LLVM:

      agent:2020/11/16 16:34:06 build.go:379: In file included from /Users/qt/work/qt/qtdeclarative/src/3rdparty/masm/yarr/YarrSyntaxChecker.cpp:29:
      agent:2020/11/16 16:34:06 build.go:379: /Users/qt/work/qt/qtdeclarative/src/3rdparty/masm/yarr/YarrParser.h:1037:38: error: conversion from 'int' to 'QChar' is ambiguous
      agent:2020/11/16 16:34:06 build.go:379:             identifierBuilder.append(ch);
      agent:2020/11/16 16:34:06 build.go:379:                                      ^~
      agent:2020/11/16 16:34:06 build.go:379: C:/Users/qt/work/install/include/QtCore/qchar.h:111:26: note: candidate constructor
      agent:2020/11/16 16:34:06 build.go:379:     constexpr Q_IMPLICIT QChar(ushort rc) noexcept : ucs(rc) {}
      agent:2020/11/16 16:34:06 build.go:379:                          ^
      agent:2020/11/16 16:34:06 build.go:379: C:/Users/qt/work/install/include/QtCore/qchar.h:113:26: note: candidate constructor
      agent:2020/11/16 16:34:06 build.go:379:     constexpr Q_IMPLICIT QChar(short rc) noexcept : ucs(char16_t(rc)) {}
      agent:2020/11/16 16:34:06 build.go:379:                          ^
      agent:2020/11/16 16:34:06 build.go:379: C:/Users/qt/work/install/include/QtCore/qchar.h:118:26: note: candidate constructor
      agent:2020/11/16 16:34:06 build.go:379:     constexpr Q_IMPLICIT QChar(char16_t ch) noexcept : ucs(ch) {} // implicit
      agent:2020/11/16 16:34:06 build.go:379:                          ^
      agent:2020/11/16 16:34:06 build.go:379: C:/Users/qt/work/install/include/QtCore/qchar.h:123:26: note: candidate constructor
      agent:2020/11/16 16:34:06 build.go:379:     constexpr Q_IMPLICIT QChar(wchar_t ch) noexcept : ucs(char16_t(ch)) {} // implicit
      agent:2020/11/16 16:34:06 build.go:379:                          ^
      agent:2020/11/16 16:34:06 build.go:379: C:/Users/qt/work/install/include/QtCore/qchar.h:128:45: note: candidate constructor
      agent:2020/11/16 16:34:06 build.go:379:     QT_ASCII_CAST_WARN constexpr Q_IMPLICIT QChar(char c) noexcept : ucs(uchar(c)) { }
      agent:2020/11/16 16:34:06 build.go:379:                                             ^
      agent:2020/11/16 16:34:06 build.go:379: C:/Users/qt/work/install/include\QtCore/qstring.h:617:27: note: passing argument to parameter 'c' here
      agent:2020/11/16 16:34:06 build.go:379:     QString &append(QChar c);
      agent:2020/11/16 16:34:06 build.go:379:                           ^
      agent:2020/11/16 16:34:06 build.go:379: In file included from /Users/qt/work/qt/qtdeclarative/src/3rdparty/masm/yarr/YarrSyntaxChecker.cpp:29:
      agent:2020/11/16 16:34:06 build.go:379: /Users/qt/work/qt/qtdeclarative/src/3rdparty/masm/yarr/YarrParser.h:1047:42: error: conversion from 'int' to 'QChar' is ambiguous
      agent:2020/11/16 16:34:06 build.go:379:                 identifierBuilder.append(ch);
      agent:2020/11/16 16:34:06 build.go:379:                                          ^~
      agent:2020/11/16 16:34:06 build.go:379: C:/Users/qt/work/install/include/QtCore/qchar.h:111:26: note: candidate constructor
      agent:2020/11/16 16:34:06 build.go:379:     constexpr Q_IMPLICIT QChar(ushort rc) noexcept : ucs(rc) {}
      agent:2020/11/16 16:34:06 build.go:379:                          ^
      agent:2020/11/16 16:34:06 build.go:379: C:/Users/qt/work/install/include/QtCore/qchar.h:113:26: note: candidate constructor
      agent:2020/11/16 16:34:06 build.go:379:     constexpr Q_IMPLICIT QChar(short rc) noexcept : ucs(char16_t(rc)) {}
      agent:2020/11/16 16:34:06 build.go:379:                          ^
      agent:2020/11/16 16:34:06 build.go:379: C:/Users/qt/work/install/include/QtCore/qchar.h:118:26: note: candidate constructor
      agent:2020/11/16 16:34:06 build.go:379:     constexpr Q_IMPLICIT QChar(char16_t ch) noexcept : ucs(ch) {} // implicit
      agent:2020/11/16 16:34:06 build.go:379:                          ^
      agent:2020/11/16 16:34:06 build.go:379: C:/Users/qt/work/install/include/QtCore/qchar.h:123:26: note: candidate constructor
      agent:2020/11/16 16:34:06 build.go:379:     constexpr Q_IMPLICIT QChar(wchar_t ch) noexcept : ucs(char16_t(ch)) {} // implicit
      agent:2020/11/16 16:34:06 build.go:379:                          ^
      agent:2020/11/16 16:34:06 build.go:379: C:/Users/qt/work/install/include/QtCore/qchar.h:128:45: note: candidate constructor
      agent:2020/11/16 16:34:06 build.go:379:     QT_ASCII_CAST_WARN constexpr Q_IMPLICIT QChar(char c) noexcept : ucs(uchar(c)) { }
      agent:2020/11/16 16:34:06 build.go:379:                                             ^
      agent:2020/11/16 16:34:06 build.go:379: C:/Users/qt/work/install/include\QtCore/qstring.h:617:27: note: passing argument to parameter 'c' here
      agent:2020/11/16 16:34:06 build.go:379:     QString &append(QChar c);
      agent:2020/11/16 16:34:06 build.go:379:                           ^
      agent:2020/11/16 16:34:06 build.go:379: In file included from /Users/qt/work/qt/qtdeclarative/src/3rdparty/masm/yarr/YarrSyntaxChecker.cpp:29:
      agent:2020/11/16 16:34:06 build.go:379: /Users/qt/work/qt/qtdeclarative/src/3rdparty/masm/yarr/YarrParser.h:1103:42: error: conversion from 'int' to 'QChar' is ambiguous
      agent:2020/11/16 16:34:06 build.go:379:                 expressionBuilder.append(ch);
      agent:2020/11/16 16:34:06 build.go:379:                                          ^~
      agent:2020/11/16 16:34:06 build.go:379: C:/Users/qt/work/install/include/QtCore/qchar.h:111:26: note: candidate constructor
      agent:2020/11/16 16:34:06 build.go:379:     constexpr Q_IMPLICIT QChar(ushort rc) noexcept : ucs(rc) {}
      agent:2020/11/16 16:34:06 build.go:379:                          ^
      agent:2020/11/16 16:34:06 build.go:379: C:/Users/qt/work/install/include/QtCore/qchar.h:113:26: note: candidate constructor
      agent:2020/11/16 16:34:06 build.go:379:     constexpr Q_IMPLICIT QChar(short rc) noexcept : ucs(char16_t(rc)) {}
      agent:2020/11/16 16:34:06 build.go:379:                          ^
      agent:2020/11/16 16:34:06 build.go:379: C:/Users/qt/work/install/include/QtCore/qchar.h:118:26: note: candidate constructor
      agent:2020/11/16 16:34:06 build.go:379:     constexpr Q_IMPLICIT QChar(char16_t ch) noexcept : ucs(ch) {} // implicit
      agent:2020/11/16 16:34:06 build.go:379:                          ^
      agent:2020/11/16 16:34:06 build.go:379: C:/Users/qt/work/install/include/QtCore/qchar.h:123:26: note: candidate constructor
      agent:2020/11/16 16:34:06 build.go:379:     constexpr Q_IMPLICIT QChar(wchar_t ch) noexcept : ucs(char16_t(ch)) {} // implicit
      agent:2020/11/16 16:34:06 build.go:379:                          ^
      agent:2020/11/16 16:34:06 build.go:379: C:/Users/qt/work/install/include/QtCore/qchar.h:128:45: note: candidate constructor
      agent:2020/11/16 16:34:06 build.go:379:     QT_ASCII_CAST_WARN constexpr Q_IMPLICIT QChar(char c) noexcept : ucs(uchar(c)) { }
      agent:2020/11/16 16:34:06 build.go:379:                                             ^
      agent:2020/11/16 16:34:06 build.go:379: C:/Users/qt/work/install/include\QtCore/qstring.h:617:27: note: passing argument to parameter 'c' here
      agent:2020/11/16 16:34:06 build.go:379:     QString &append(QChar c);
      agent:2020/11/16 16:34:06 build.go:379:                           ^
      agent:2020/11/16 16:34:06 build.go:379: In file included from /Users/qt/work/qt/qtdeclarative/src/3rdparty/masm/yarr/YarrSyntaxChecker.cpp:29:
      agent:2020/11/16 16:34:06 build.go:379: /Users/qt/work/qt/qtdeclarative/src/3rdparty/masm/yarr/YarrParser.h:1068:34: error: conversion from 'int' to 'QChar' is ambiguous
      agent:2020/11/16 16:34:06 build.go:379:         expressionBuilder.append(consume());
      agent:2020/11/16 16:34:06 build.go:379:                                  ^~~~~~~~~
      agent:2020/11/16 16:34:06 build.go:379: /Users/qt/work/qt/qtdeclarative/src/3rdparty/masm/yarr/YarrParser.h:462:35: note: in instantiation of member function 'JSC::Yarr::Parser<JSC::Yarr::SyntaxChecker, unsigned char>::tryConsumeUnicodePropertyExpression' requested here
      agent:2020/11/16 16:34:06 build.go:379:                 auto optClassID = tryConsumeUnicodePropertyExpression();
      agent:2020/11/16 16:34:06 build.go:379:                                   ^
      agent:2020/11/16 16:34:06 build.go:379: /Users/qt/work/qt/qtdeclarative/src/3rdparty/masm/yarr/YarrParser.h:582:9: note: in instantiation of function template specialization 'JSC::Yarr::Parser<JSC::Yarr::SyntaxChecker, unsigned char>::parseEscape<true, JSC::Yarr::Parser<JSC::Yarr::SyntaxChecker, unsigned char>::CharacterClassParserDelegate>' requested here
      agent:2020/11/16 16:34:06 build.go:379:         parseEscape<true>(delegate);
      agent:2020/11/16 16:34:06 build.go:379:         ^
      agent:2020/11/16 16:34:06 build.go:379: /Users/qt/work/qt/qtdeclarative/src/3rdparty/masm/yarr/YarrParser.h:610:17: note: in instantiation of member function 'JSC::Yarr::Parser<JSC::Yarr::SyntaxChecker, unsigned char>::parseCharacterClassEscape' requested here
      agent:2020/11/16 16:34:06 build.go:379:                 parseCharacterClassEscape(characterClassConstructor);
      agent:2020/11/16 16:34:06 build.go:379:                 ^
      agent:2020/11/16 16:34:06 build.go:379: /Users/qt/work/qt/qtdeclarative/src/3rdparty/masm/yarr/YarrParser.h:768:17: note: in instantiation of member function 'JSC::Yarr::Parser<JSC::Yarr::SyntaxChecker, unsigned char>::parseCharacterClass' requested here
      agent:2020/11/16 16:34:06 build.go:379:                 parseCharacterClass();
      agent:2020/11/16 16:34:06 build.go:379:                 ^
      agent:2020/11/16 16:34:06 build.go:379: /Users/qt/work/qt/qtdeclarative/src/3rdparty/masm/yarr/YarrParser.h:843:13: note: in instantiation of member function 'JSC::Yarr::Parser<JSC::Yarr::SyntaxChecker, unsigned char>::parseTokens' requested here
      agent:2020/11/16 16:34:06 build.go:379:             parseTokens();
      agent:2020/11/16 16:34:06 build.go:379:             ^
      agent:2020/11/16 16:34:06 build.go:379: /Users/qt/work/qt/qtdeclarative/src/3rdparty/masm/yarr/YarrParser.h:1190:90: note: in instantiation of member function 'JSC::Yarr::Parser<JSC::Yarr::SyntaxChecker, unsigned char>::parse' requested here
      agent:2020/11/16 16:34:06 build.go:379:         return Parser<Delegate, LChar>(delegate, pattern, isUnicode, backReferenceLimit).parse();
      agent:2020/11/16 16:34:06 build.go:379:                                                                                          ^
      agent:2020/11/16 16:34:06 build.go:379: /Users/qt/work/qt/qtdeclarative/src/3rdparty/masm/yarr/YarrSyntaxChecker.cpp:61:12: note: in instantiation of function template specialization 'JSC::Yarr::parse<JSC::Yarr::SyntaxChecker>' requested here
      agent:2020/11/16 16:34:06 build.go:379:     return parse(syntaxChecker, pattern, flags.contains(u'u'));
      agent:2020/11/16 16:34:06 build.go:379:            ^
      agent:2020/11/16 16:34:06 build.go:379: C:/Users/qt/work/install/include/QtCore/qchar.h:111:26: note: candidate constructor
      agent:2020/11/16 16:34:06 build.go:379:     constexpr Q_IMPLICIT QChar(ushort rc) noexcept : ucs(rc) {}
      agent:2020/11/16 16:34:06 build.go:379:                          ^
      agent:2020/11/16 16:34:06 build.go:379: C:/Users/qt/work/install/include/QtCore/qchar.h:113:26: note: candidate constructor
      agent:2020/11/16 16:34:06 build.go:379:     constexpr Q_IMPLICIT QChar(short rc) noexcept : ucs(char16_t(rc)) {}
      agent:2020/11/16 16:34:06 build.go:379:                          ^
      agent:2020/11/16 16:34:06 build.go:379: C:/Users/qt/work/install/include/QtCore/qchar.h:118:26: note: candidate constructor
      agent:2020/11/16 16:34:06 build.go:379:     constexpr Q_IMPLICIT QChar(char16_t ch) noexcept : ucs(ch) {} // implicit
      agent:2020/11/16 16:34:06 build.go:379:                          ^
      agent:2020/11/16 16:34:06 build.go:379: C:/Users/qt/work/install/include/QtCore/qchar.h:123:26: note: candidate constructor
      agent:2020/11/16 16:34:06 build.go:379:     constexpr Q_IMPLICIT QChar(wchar_t ch) noexcept : ucs(char16_t(ch)) {} // implicit
      agent:2020/11/16 16:34:06 build.go:379:                          ^
      agent:2020/11/16 16:34:06 build.go:379: C:/Users/qt/work/install/include/QtCore/qchar.h:128:45: note: candidate constructor
      agent:2020/11/16 16:34:06 build.go:379:     QT_ASCII_CAST_WARN constexpr Q_IMPLICIT QChar(char c) noexcept : ucs(uchar(c)) { }
      agent:2020/11/16 16:34:06 build.go:379:                                             ^
      agent:2020/11/16 16:34:06 build.go:379: C:/Users/qt/work/install/include\QtCore/qstring.h:617:27: note: passing argument to parameter 'c' here
      agent:2020/11/16 16:34:06 build.go:379:     QString &append(QChar c);
      agent:2020/11/16 16:34:06 build.go:379:                           ^
      agent:2020/11/16 16:34:06 build.go:379: In file included from /Users/qt/work/qt/qtdeclarative/src/3rdparty/masm/yarr/YarrSyntaxChecker.cpp:29:
      agent:2020/11/16 16:34:06 build.go:379: /Users/qt/work/qt/qtdeclarative/src/3rdparty/masm/yarr/YarrParser.h:1068:34: error: conversion from 'int' to 'QChar' is ambiguous
      agent:2020/11/16 16:34:06 build.go:379:         expressionBuilder.append(consume());
      agent:2020/11/16 16:34:06 build.go:379:                                  ^~~~~~~~~
      agent:2020/11/16 16:34:06 build.go:379: /Users/qt/work/qt/qtdeclarative/src/3rdparty/masm/yarr/YarrParser.h:462:35: note: in instantiation of member function 'JSC::Yarr::Parser<JSC::Yarr::SyntaxChecker, unsigned short>::tryConsumeUnicodePropertyExpression' requested here
      agent:2020/11/16 16:34:06 build.go:379:                 auto optClassID = tryConsumeUnicodePropertyExpression();
      agent:2020/11/16 16:34:06 build.go:379:                                   ^
      agent:2020/11/16 16:34:06 build.go:379: /Users/qt/work/qt/qtdeclarative/src/3rdparty/masm/yarr/YarrParser.h:582:9: note: in instantiation of function template specialization 'JSC::Yarr::Parser<JSC::Yarr::SyntaxChecker, unsigned short>::parseEscape<true, JSC::Yarr::Parser<JSC::Yarr::SyntaxChecker, unsigned short>::CharacterClassParserDelegate>' requested here
      agent:2020/11/16 16:34:06 build.go:379:         parseEscape<true>(delegate);
      agent:2020/11/16 16:34:06 build.go:379:         ^
      agent:2020/11/16 16:34:06 build.go:379: /Users/qt/work/qt/qtdeclarative/src/3rdparty/masm/yarr/YarrParser.h:610:17: note: in instantiation of member function 'JSC::Yarr::Parser<JSC::Yarr::SyntaxChecker, unsigned short>::parseCharacterClassEscape' requested here
      agent:2020/11/16 16:34:06 build.go:379:                 parseCharacterClassEscape(characterClassConstructor);
      agent:2020/11/16 16:34:06 build.go:379:                 ^
      agent:2020/11/16 16:34:06 build.go:379: /Users/qt/work/qt/qtdeclarative/src/3rdparty/masm/yarr/YarrParser.h:768:17: note: in instantiation of member function 'JSC::Yarr::Parser<JSC::Yarr::SyntaxChecker, unsigned short>::parseCharacterClass' requested here
      agent:2020/11/16 16:34:06 build.go:379:                 parseCharacterClass();
      agent:2020/11/16 16:34:06 build.go:379:                 ^
      agent:2020/11/16 16:34:06 build.go:379: /Users/qt/work/qt/qtdeclarative/src/3rdparty/masm/yarr/YarrParser.h:843:13: note: in instantiation of member function 'JSC::Yarr::Parser<JSC::Yarr::SyntaxChecker, unsigned short>::parseTokens' requested here
      agent:2020/11/16 16:34:06 build.go:379:             parseTokens();
      agent:2020/11/16 16:34:06 build.go:379:             ^
      agent:2020/11/16 16:34:06 build.go:379: /Users/qt/work/qt/qtdeclarative/src/3rdparty/masm/yarr/YarrParser.h:1191:86: note: in instantiation of member function 'JSC::Yarr::Parser<JSC::Yarr::SyntaxChecker, unsigned short>::parse' requested here
      agent:2020/11/16 16:34:06 build.go:379:     return Parser<Delegate, UChar>(delegate, pattern, isUnicode, backReferenceLimit).parse();
      agent:2020/11/16 16:34:06 build.go:379:                                                                                      ^
      agent:2020/11/16 16:34:06 build.go:379: /Users/qt/work/qt/qtdeclarative/src/3rdparty/masm/yarr/YarrSyntaxChecker.cpp:61:12: note: in instantiation of function template specialization 'JSC::Yarr::parse<JSC::Yarr::SyntaxChecker>' requested here
      agent:2020/11/16 16:34:06 build.go:379:     return parse(syntaxChecker, pattern, flags.contains(u'u'));
      agent:2020/11/16 16:34:06 build.go:379:            ^
      agent:2020/11/16 16:34:06 build.go:379: C:/Users/qt/work/install/include/QtCore/qchar.h:111:26: note: candidate constructor
      agent:2020/11/16 16:34:06 build.go:379:     constexpr Q_IMPLICIT QChar(ushort rc) noexcept : ucs(rc) {}
      agent:2020/11/16 16:34:06 build.go:379:                          ^
      agent:2020/11/16 16:34:06 build.go:379: C:/Users/qt/work/install/include/QtCore/qchar.h:113:26: note: candidate constructor
      agent:2020/11/16 16:34:06 build.go:379:     constexpr Q_IMPLICIT QChar(short rc) noexcept : ucs(char16_t(rc)) {}
      agent:2020/11/16 16:34:06 build.go:379:                          ^
      agent:2020/11/16 16:34:06 build.go:379: C:/Users/qt/work/install/include/QtCore/qchar.h:118:26: note: candidate constructor
      agent:2020/11/16 16:34:06 build.go:379:     constexpr Q_IMPLICIT QChar(char16_t ch) noexcept : ucs(ch) {} // implicit
      agent:2020/11/16 16:34:06 build.go:379:                          ^
      agent:2020/11/16 16:34:06 build.go:379: C:/Users/qt/work/install/include/QtCore/qchar.h:123:26: note: candidate constructor
      agent:2020/11/16 16:34:06 build.go:379:     constexpr Q_IMPLICIT QChar(wchar_t ch) noexcept : ucs(char16_t(ch)) {} // implicit
      agent:2020/11/16 16:34:06 build.go:379:                          ^
      agent:2020/11/16 16:34:06 build.go:379: C:/Users/qt/work/install/include/QtCore/qchar.h:128:45: note: candidate constructor
      agent:2020/11/16 16:34:06 build.go:379:     QT_ASCII_CAST_WARN constexpr Q_IMPLICIT QChar(char c) noexcept : ucs(uchar(c)) { }
      agent:2020/11/16 16:34:06 build.go:379:                                             ^
      agent:2020/11/16 16:34:06 build.go:379: C:/Users/qt/work/install/include\QtCore/qstring.h:617:27: note: passing argument to parameter 'c' here
      agent:2020/11/16 16:34:06 build.go:379:     QString &append(QChar c);
      agent:2020/11/16 16:34:06 build.go:379:                           ^
      agent:2020/11/16 16:34:06 build.go:379: 5 errors generated.
      

      Whole log attached.

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              tosaraja Tony Sarajärvi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes