False positive with -Wunreachable-code

Originator:tewha
Number:rdar://16154083 Date Originated:24-Feb-2014 03:52 PM
Status:Open Resolved:Duplicate of 16166857 (Open)
Product:Developer Tools Product Version:Xcode 5.0.2
Classification:Other Reproducible:Always
 
Summary:
-Wunreachable-code can offer bad advice around switch statements.

Steps to Reproduce:
1. Build attached project.
2. Run.

Expected Results:
Should build silently.

Actual Results:
Warns that line 17 is unreachable, but console output indicates it was reached.

Version:
Xcode 5.0.2
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)

Notes:


Configuration:


Attachments:
'CodeIsReachable.zip' was successfully uploaded.

Comments

Code

https://dl.dropboxusercontent.com/u/1606770/Bugs/CodeIsReachable.zip


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!