[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


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

           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
clang:
/home/stuff/download/SCM/llvm/tools/clang/lib/Sema/../../include/clang/AST/CanonicalType.h:708:
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++
bug.cpp 
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
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