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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


$ 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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to