[LLVMbugs] [Bug 5817] New: sema crashes when initializing an array where the type was defined within a typedef

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Dec 17 06:43:24 PST 2009


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

           Summary: sema crashes when initializing an array where the type
                    was defined within a typedef
           Product: clang
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nunoplopes at sapo.pt
                CC: llvmbugs at cs.uiuc.edu


$ cat a.cpp
typedef int type[][2];
const type foo = {0};

$ clang -fsyntax-only a.cpp
clang: include/llvm/Support/Casting.h:199: typename llvm::cast_retty<To,
From>::ret_type llvm::cast(const Y&) [with X = clang::ArrayTypeLoc, Y =
clang::TypeLoc]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible
type!"' failed.


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