Opened 8 years ago
Closed 8 years ago
#4361 closed defect (fixed)
Util/StringHandler.cpp:1125:40: error: ambiguous overload for ‘operator!=’
Reported by: | anonymous | Owned by: | Adeel Asghar |
---|---|---|---|
Priority: | normal | Milestone: | 1.12.0 |
Component: | OMEdit | Version: | v1.12.0 |
Keywords: | Cc: |
Description
Hello I cannot compile openmodelica git version:
g++ -c -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wno-clobbered -Wno-unused-variable -Wno-unused-function -Wno-unused-parameter -g -march=x86-64 -mtune=generic -pipe -fstack-protector-strong -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_WEBKITWIDGETS_LIB -DQT_WEBKIT_LIB -DQT_SVG_LIB -DQT_OPENGL_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XMLPATTERNS_LIB -DQT_NETWORK_LIB -DQT_XML_LIB -DQT_CORE_LIB -I. -I../../../build/include/omc/scripting-API -I../../../build/include/omplot -I../../../build/include/omplot/qwt -I../../../build/include/x86_64-linux-gnu/omc/antlr3 -I../../../build/include/omc/c -I../../qjson-0.8.1/build/include -I../../qjson/build/include -I../../../build/include/omc/scripting-API -I../../../build/include/omc/c/util -I../../../OMCompiler/3rdParty/FMIL/install/include -isystem /usr/include/qt -isystem /usr/include/qt/QtWebKitWidgets -isystem /usr/include/qt/QtWebKit -isystem /usr/include/qt/QtSvg -isystem /usr/include/qt/QtOpenGL -isystem /usr/include/qt/QtPrintSupport -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtXmlPatterns -isystem /usr/include/qt/QtNetwork -isystem /usr/include/qt/QtXml -isystem /usr/include/qt/QtCore -I../generatedfiles/moc -isystem /usr/include/libdrm -I/usr/lib/qt/mkspecs/linux-g++ -o StringHandler.o Util/StringHandler.cpp Util/StringHandler.cpp: In static member function ‘static QStringList StringHandler::unparseStrings(QString)’: Util/StringHandler.cpp:1125:40: error: ambiguous overload for ‘operator!=’ (operand types are ‘QCharRef’ and ‘char’) while (value[i] != '"' && value[i] != '\0') { ~~~~~~~~~^~~~~~~ In file included from /usr/include/qt/QtCore/qobject.h:47:0, from /usr/include/qt/QtCore/QObject:1, from Util/StringHandler.h:38, from Util/StringHandler.cpp:37: /usr/include/qt/QtCore/qstring.h:1639:13: note: candidate: bool operator!=(QChar, const QStringRef&) inline bool operator!=(QChar lhs, const QStringRef &rhs) Q_DECL_NOTHROW { return !(lhs == rhs); } ^~~~~~~~ /usr/include/qt/QtCore/qstring.h:1620:13: note: candidate: bool operator!=(QChar, const QString&) inline bool operator!=(QChar lhs, const QString &rhs) Q_DECL_NOTHROW { return !(lhs == rhs); } ^~~~~~~~ In file included from /usr/include/qt/QtCore/qstring.h:48:0, from /usr/include/qt/QtCore/qobject.h:47, from /usr/include/qt/QtCore/QObject:1, from Util/StringHandler.h:38, from Util/StringHandler.cpp:37: /usr/include/qt/QtCore/qchar.h:576:30: note: candidate: constexpr bool operator!=(QChar, QChar) Q_DECL_CONSTEXPR inline bool operator!=(QChar c1, QChar c2) Q_DECL_NOTHROW { return !operator==(c1, c2); } ^~~~~~~~
platform is linux64/gcc6.3.0
Change History (1)
comment:1 by , 8 years ago
Milestone: | Future → 1.12.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Fixed in 742ae25/OMEdit.