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

Dmitri Gribenko <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|                            |FIXED

--- Comment #2 from Dmitri Gribenko <[email protected]> 2012-12-28 07:27:23 
CST ---
Richard Smith implemented this (at least since r165533):

$ cat /tmp/z.cc
int foo() {}

int main() {
  foo();
}

$ clang -fsanitize=undefined /tmp/z.cc
/tmp/z.cc:1:12: warning: control reaches end of non-void function
[-Wreturn-type]
int foo() {}
           ^
1 warning generated.

$ ./a.out 
/tmp/z.cc:1:5: runtime error: execution reached the end of a value-returning
function without returning a value

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