[LLVMbugs] [Bug 7149] New: clang boost boost.geometry

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun May 16 14:27:11 PDT 2010


           Summary: clang boost boost.geometry
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: barend at xs4all.nl
                CC: llvmbugs at cs.uiuc.edu

The file


stops the clang compiler. It compiles fine in gcc and MSVC.

Most (if not all) other files compile fine and I found some errors (additional
.template necessary) in my code, so thanks very much for this great compiler.

Commands to reproduce: 
1) Checking out Boost.Geometry, e.g. svn co
https://svn.boost.org/svn/boost/sandbox/geometry boost_geometry
2) cd boost_geometry/libs/geometry/test/geometries
3) clang -I.. -I../../../.. segment.cpp -lstdc++ -v

(I did try to make a minimal sample without Boost.Geometry but that one
compiled fine)

#include "..." search starts here:
#include <...> search starts here:
End of search list.
clang: CodeGenFunction.h:1341: void
const T*, clang::ConstExprIterator, clang::ConstExprIterator) [with T =
clang::FunctionProtoType]: Assertion
`getContext().getCanonicalType(ArgType.getNonReferenceType()). getTypePtr() ==
getContext().getCanonicalType(Arg->getType()).getTypePtr() && "type mismatch in
call argument!"' failed.
0  clang 0x09007368
Stack dump:
0.    Program arguments: /home/barend/svn/llvm/Release/bin/clang -cc1 -triple
i386-pc-linux-gnu -S -disable-free -main-file-name segment.cpp
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-cpu
pentium4 -v -resource-dir /home/barend/svn/llvm/Release/lib/clang/2.0 -I..
-I../../../.. -ferror-limit 19 -fmessage-length 0 -fexceptions -fgnu-runtime
-fdiagnostics-show-option -o /tmp/cc-tULQw7.s -x c++ segment.cpp 
1.    <eof> parser at end of file
2.    Per-file LLVM IR generation
3.    segment.cpp:31:6: Generating code for declaration 'test_all'
4.    segment.cpp:32:1: LLVM IR generation of compound statement ('{}')
clang: error: compiler command failed due to signal 6 (use -v to see

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