[LLVMbugs] [Bug 7206] New: Assertion `(Other.isNull() || Other.isCanonical()) && "Type is not canonical!"' failed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun May 23 03:58:20 PDT 2010


           Summary: Assertion `(Other.isNull() || Other.isCanonical()) &&
                    "Type is not canonical!"' failed
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: grzegorz.dabrowski at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

OS: Haiku and Ubuntu

$ clang -v
clang version 2.0 (trunk 104460)
Target: i386-pc-linux-gnu
Thread model: posix

$ cat bug.cpp 
#include <string.h>

int main()
    struct edge_info {
        float left;
        float right;
    int size = strlen("test");
    struct edge_info edgeInfo[size];

    return 0;

$ clang++ bug.cpp
static clang::CanQual<T> clang::CanQual< <template-parameter-1-1>
>::CreateUnsafe(clang::QualType) [with T = clang::Type]: Assertion
`(Other.isNull() || Other.isCanonical()) && "Type is not canonical!"' failed.
0  clang 0x09000508
Stack dump:
0.    Program arguments: /home/stuff/download/SCM/llvm/Release/bin/clang -cc1
-triple i386-pc-linux-gnu -S -disable-free -main-file-name bug.cpp
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-cpu
pentium4 -resource-dir /home/stuff/download/SCM/llvm/Release/lib/clang/2.0
-ferror-limit 19 -fmessage-length 157 -fexceptions -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-aH2VdE.s -x c++
1.    <eof> parser at end of file
2.    bug.cpp:5:1: parsing function body 'main'
clang: error: clang frontend 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