[LLVMbugs] [Bug 2241] Suboptimal error recovery in initializers

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Apr 20 11:51:49 PDT 2008


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


Chris Lattner <sabre at nondot.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX




--- Comment #1 from Chris Lattner <sabre at nondot.org>  2008-04-20 13:51:48 ---
This is by design.  If an error is caught during sema, the entire rest of the
subexpression is ignored for Sema purposes to avoid cascading error messages. 
For example, a malformed numeric literal will still have to have a type
assigned to it.  IMO it is better to just give up on the expression.  


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