[LLVMbugs] [Bug 4831] New: Empty non-void noreturn function gives wrong diagnostic

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Aug 29 22:59:58 PDT 2009


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

           Summary: Empty non-void noreturn function gives wrong diagnostic
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rideau3 at gmail.com
                CC: llvmbugs at cs.uiuc.edu


The following code:

__attribute__((noreturn)) int foo() { }

Gives an error for "function declared 'noreturn' should not return", but the
function cannot return at all. The diagnostic should be the same as without the
noreturn attribute.


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