[LLVMbugs] [Bug 3001] New: clang: Assertion failed: ... "not sorted by InitIndex!", function CreateDesignation, include/clang/Parse/Designator.h:206

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Oct 31 19:28:32 PDT 2008


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

           Summary: clang: Assertion failed: ... "not sorted by InitIndex!",
                    function CreateDesignation,
                    include/clang/Parse/Designator.h:206
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Keywords: crash-on-invalid
          Severity: normal
          Priority: P2
         Component: parser
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: richard at godbee.net
                CC: llvmbugs at cs.uiuc.edu


struct s1 s2 = {
    .a = sizeof(struct s3),
    .b = c
}


<stdin>:2:10: error: invalid application of 'sizeof' to an incomplete type
'struct s3'
    .a = sizeof(struct s3),
         ^     ~~~~~~~~~~~
Assertion failed: ((Designations.empty() || Designations.back().InitIndex <
Idx) && "not sorted by InitIndex!"), function CreateDesignation, file
/Users/rwg/llvm/svn-src/llvm-trunk/tools/clang/lib/Parse/../../include/clang/Parse/Designator.h,
line 206.


llvm/clang r58543 (trunk)


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