Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Unreachable code
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===C++=== In [[C++]], some constructs are specified to have [[undefined behavior]]. A compiler is free to implement any behavior or none, and typically an optimizing compiler will assume the code is unreachable.<ref>{{cite web|url=https://wiki.sei.cmu.edu/confluence/display/c/MSC15-C.+Do+not+depend+on+undefined+behavior|publisher=Carnegie Mellon University|title=MSC15-C. Do not depend on undefined behavior|quote=Because compilers are not obligated to generate code for undefined behavior, these behaviors are candidates for optimization.|year=2020|access-date=28 September 2020}}</ref>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)