[LLVMbugs] [Bug 12689] Crash while compiling objective-c-ast-file with multiple switch/case

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu May 3 16:55:28 PDT 2012


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

Hendrik <variadic.template at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |
         AssignedTo|unassignedclangbugs at nondot. |variadic.template at gmail.com
                   |org                         |

--- Comment #4 from Hendrik <variadic.template at gmail.com> 2012-05-03 18:55:28 CDT ---
Created attachment 8487
  --> http://llvm.org/bugs/attachment.cgi?id=8487
Second testfile - after patch

Emitting the ast-file and compiling it like the first test file, it fails with
Assertion failed: (SwitchCaseStmts[ID] != 0 && "No SwitchCase with this ID"),
function getSwitchCaseWithID, file
/Users/raiserescue/develop/thirdparty/llvm/tools/clang/lib/Serialization/ASTReader.cpp

It only occurs if in the first case is an objc-method is called which is not
declared within the interface/extension of the class.

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