[LLVMbugs] [Bug 6964] New: Assertion in boost testcase

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Apr 28 03:47:57 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=6964

           Summary: Assertion in boost testcase
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: chris at bubblescope.net
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


The attached testcase, reduced from boost, causes an assertion in clang++. It
compiles fine in g++.

t.cc:1:32: warning: non-type template argument value '9223372036854775807'
truncated to '-1'
      for template parameter of type 'int'
template <typename ,int, int = 9223372036854775807L >
                               ^~~~~~~~~~~~~~~~~~~~
t.cc:1:30: note: template parameter is declared here                            
template <typename ,int, int = 9223372036854775807L >
                             ^
t.cc:1:32: warning: non-type template argument value '9223372036854775807'
truncated to '-1' 
      for template parameter of type 'int'
template <typename ,int, int = 9223372036854775807L >
                               ^~~~~~~~~~~~~~~~~~~~
clang: SemaTemplate.cpp:5521: std::string
clang::Sema::getTemplateArgumentBindingsText(const
clang::TemplateParameterList*, const clang::TemplateArgument*, unsigned int):
Assertion `false && "No expressions in deduced template arguments!"' failed.
0  clang           0x0000000001490e82
1  clang           0x0000000001490d69
2  libpthread.so.0 0x00007f2d64aca8f0
3  libc.so.6       0x00007f2d63dbaa75 gsignal + 53
4  libc.so.6       0x00007f2d63dbe5c0 abort + 384
5  libc.so.6       0x00007f2d63db3941 __assert_fail + 241
6  clang           0x00000000007d5e35
7  clang           0x00000000007f17aa
8  clang           0x000000000068eb00
9  clang           0x00000000007cc31d
10 clang           0x00000000007c8162
11 clang           0x00000000007c927a
12 clang           0x00000000007cfb2f
13 clang           0x0000000000a6270a
14 clang           0x0000000000a5714e
15 clang           0x0000000000a7b498
16 clang           0x0000000000a7b2f2
17 clang           0x0000000000a7ae67
18 clang           0x0000000000a53d72
19 clang           0x0000000000a4e2af
20 clang           0x0000000000a4dc79
21 clang           0x000000000068be08
22 clang           0x000000000043705c
23 clang           0x0000000000436cc7
24 clang           0x00000000004212eb
25 clang           0x0000000000409172
26 clang           0x000000000040dce2 main + 259
27 libc.so.6       0x00007f2d63da5c4d __libc_start_main + 253
28 clang           0x0000000000407b49
Stack dump:
0.      Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -S -disable-free -main-file-name t.cc
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/1.5
-ferror-limit 19 -ftemplate-backtrace-limit 10 -fmessage-length 93 -fexceptions
-fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-ycf7Js.s
-x c++ t.cc 
1.      t.cc:6:1: current parser token '{'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)

-- 
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