[LLVMbugs] [Bug 11744] New: Assertion failure with multi-dimensional arrays and templates

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jan 11 06:48:45 PST 2012


             Bug #: 11744
           Summary: Assertion failure with multi-dimensional arrays and
           Product: clang
           Version: 3.0
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: whitehorn at wisc.edu
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 7862
  --> http://llvm.org/bugs/attachment.cgi?id=7862
Test case

Not really sure how to describe this one, since it seems to depend on basically
everything aspect of the attached test case. Here's the output:

Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!"),
function cast, file
line 194.
Stack dump:
0.      Program arguments: /usr/bin/clang++ -cc1 -triple
x86_64-unknown-freebsd10.0 -emit-obj -mrelax-all -disable-free -main-file-name
reduced.ii -mrelocation-model static -mdisable-fp-elim -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64
-momit-leaf-frame-pointer -resource-dir /usr/bin/../lib/clang/3.0
-fdeprecated-macro -ferror-limit 19 -fmessage-length 80 -fgnu-runtime
-fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
/tmp/reduced-F7zBfW.o -x c++-cpp-output reduced.ii 
1.      <eof> parser at end of file
2.      reduced.ii:7:7: instantiating function definition 'F'
clang++: error: unable to execute command: Abort trap: 6 (core dumped)
clang++: error: clang frontend command failed due to signal 2 (use -v to see
clang++: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
clang++: note: diagnostic msg: Error generating preprocessed source(s) - no
preprocessable inputs.

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