[LLVMbugs] [Bug 12842] New: Assertion `Result.isInvalid() && "C++ binary operator overloading is missing candidates!"' failed.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed May 16 00:18:32 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12842
Bug #: 12842
Summary: Assertion `Result.isInvalid() && "C++ binary operator
overloading is missing candidates!"' failed.
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: kretz at kde.org
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Clang 3.1 (https://llvm.org/svn/llvm-project/llvm/branches/release_31@156799)
fails on my code with the following output:
mkretz at avx-dev% /opt/clang-master/bin/clang++ -v -DQT_GUI_LIB -DQT_CORE_LIB
-DQT_NO_DEBUG -march=corei7-avx -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx
-mno-sse4a -mno-fma4 -O3 -DNDEBUG -I/home/mkretz/src/Vc
-I/home/mkretz/src/Vc/include -I/usr/include/qt4 -I/usr/include/qt4/QtGui
-I/usr/include/qt4/QtCore -I/home/mkretz/obj/Vc-clang/examples/mandelbrot
-Wno-local-type-template-args -Wno-unnamed-type-template-args -DVC_IMPL=Scalar
-o CMakeFiles/example_mandelbrot_scalar.dir/mandel.cpp.o -c
/home/mkretz/src/Vc/examples/mandelbrot/mandel.cpp
clang version 3.1
Target: x86_64-unknown-linux-gnu
Thread model: posix
"/opt/clang-master/bin/clang-3.1" -cc1 -triple x86_64-unknown-linux-gnu
-emit-obj -disable-free -main-file-name mandel.cpp -mrelocation-model static
-masm-verbose -mconstructor-aliases -munwind-tables -target-cpu corei7-avx
-target-feature +sse2 -target-feature +sse3 -target-feature +ssse3
-target-feature +sse4.1 -target-feature +sse4.2 -target-feature +avx
-target-feature -sse4a -target-feature -fma4 -momit-leaf-frame-pointer -v
-coverage-file CMakeFiles/example_mandelbrot_scalar.dir/mandel.cpp.o
-resource-dir /opt/clang-master/bin/../lib/clang/3.1 -D QT_GUI_LIB -D
QT_CORE_LIB -D QT_NO_DEBUG -D NDEBUG -D VC_IMPL=Scalar -I /home/mkretz/src/Vc
-I /home/mkretz/src/Vc/include -I /usr/include/qt4 -I /usr/include/qt4/QtGui -I
/usr/include/qt4/QtCore -I /home/mkretz/obj/Vc-clang/examples/mandelbrot
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6 -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/x86_64-linux-gnu
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/backward
-internal-isystem /usr/local/include -internal-isystem
/opt/clang-master/bin/../lib/clang/3.1/include -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem /include
-internal-externc-isystem /usr/include -O3 -Wno-local-type-template-args
-Wno-unnamed-type-template-args -fdeprecated-macro -fdebug-compilation-dir
/home/mkretz/obj/Vc-clang/examples/mandelbrot -ferror-limit 19 -fmessage-length
274 -mstackrealign -fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak
-fobjc-fragile-abi -fcxx-exceptions -fexceptions -fdiagnostics-show-option
-fcolor-diagnostics -o CMakeFiles/example_mandelbrot_scalar.dir/mandel.cpp.o -x
c++ /home/mkretz/src/Vc/examples/mandelbrot/mandel.cpp
clang -cc1 version 3.1 based upon LLVM 3.1svn default target
x86_64-unknown-linux-gnu
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
/home/mkretz/src/Vc
/home/mkretz/src/Vc/include
/usr/include/qt4
/usr/include/qt4/QtGui
/usr/include/qt4/QtCore
/home/mkretz/obj/Vc-clang/examples/mandelbrot
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/x86_64-linux-gnu
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/backward
/usr/local/include
/opt/clang-master/bin/../lib/clang/3.1/include
/usr/include/x86_64-linux-gnu
/usr/include
End of search list.
clang-3.1: /home/mkretz/src/llvm/tools/clang/lib/Sema/SemaOverload.cpp:10123:
clang::ExprResult clang::Sema::CreateOverloadedBinOp(clang::SourceLocation,
unsigned int, const clang::UnresolvedSetImpl&, clang::Expr*, clang::Expr*):
Assertion `Result.isInvalid() && "C++ binary operator overloading is missing
candidates!"' failed.
Stack dump:
0. Program arguments: /opt/clang-master/bin/clang-3.1 -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name mandel.cpp
-mrelocation-model static -masm-verbose -mconstructor-aliases -munwind-tables
-target-cpu corei7-avx -target-feature +sse2 -target-feature +sse3
-target-feature +ssse3 -target-feature +sse4.1 -target-feature +sse4.2
-target-feature +avx -target-feature -sse4a -target-feature -fma4
-momit-leaf-frame-pointer -v -coverage-file
CMakeFiles/example_mandelbrot_scalar.dir/mandel.cpp.o -resource-dir
/opt/clang-master/bin/../lib/clang/3.1 -D QT_GUI_LIB -D QT_CORE_LIB -D
QT_NO_DEBUG -D NDEBUG -D VC_IMPL=Scalar -I /home/mkretz/src/Vc -I
/home/mkretz/src/Vc/include -I /usr/include/qt4 -I /usr/include/qt4/QtGui -I
/usr/include/qt4/QtCore -I /home/mkretz/obj/Vc-clang/examples/mandelbrot
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6 -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/x86_64-linux-gnu
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/backward
-internal-isystem /usr/local/include -internal-isystem
/opt/clang-master/bin/../lib/clang/3.1/include -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem /include
-internal-externc-isystem /usr/include -O3 -Wno-local-type-template-args
-Wno-unnamed-type-template-args -fdeprecated-macro -fdebug-compilation-dir
/home/mkretz/obj/Vc-clang/examples/mandelbrot -ferror-limit 19 -fmessage-length
274 -mstackrealign -fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak
-fobjc-fragile-abi -fcxx-exceptions -fexceptions -fdiagnostics-show-option
-fcolor-diagnostics -o CMakeFiles/example_mandelbrot_scalar.dir/mandel.cpp.o -x
c++ /home/mkretz/src/Vc/examples/mandelbrot/mandel.cpp
1. /home/mkretz/src/Vc/examples/mandelbrot/mandel.cpp:181:37: current
parser token ';'
2. /home/mkretz/src/Vc/examples/mandelbrot/mandel.cpp:158:1: parsing
function body 'mandelMe'
3. /home/mkretz/src/Vc/examples/mandelbrot/mandel.cpp:158:1: in compound
statement ('{}')
4. /home/mkretz/src/Vc/examples/mandelbrot/mandel.cpp:163:47: in compound
statement ('{}')
5. /home/mkretz/src/Vc/examples/mandelbrot/mandel.cpp:168:37: in compound
statement ('{}')
6. /home/mkretz/src/Vc/examples/mandelbrot/mandel.cpp:179:35: in compound
statement ('{}')
clang-3: error: unable to execute command: Aborted
This seems to be a regression, as clang 3.0 is able to compile this code.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list