[LLVMbugs] [Bug 3329] g++.dg/warn/pr23075.C fails
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Oct 16 21:42:31 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=3329
Bill Wendling <wendling at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |wendling at apple.com
Resolution| |WORKSFORME
--- Comment #2 from Bill Wendling <wendling at apple.com> 2011-10-16 23:42:31 CDT ---
Looks like clang is getting this correct:
$ clang++ -O2 -Wreturn-type -c pr23075.C
pr23075.C:8:3: warning: non-void function 'foo' should return a value
[-Wreturn-type]
return; // { dg-error "with no value" }
^
1 warning generated.
--
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