<blockquote>
<p>The following could result in undefined behavior:</p>
</blockquote>
<p>The following is even more likely to be UB (not just IB):</p>
<pre><code>int i1 = 1;
int* ip = &i1;
double* dp = (double*)ip;
int i1 = *((int*)dp);
</code></pre>
<p>Extra points for explaining where and why its <em>more</em> likely to eat your shorts <g-emoji class="g-emoji" alias="grin" fallback-src="https://assets-cdn.github.com/images/icons/emoji/unicode/1f601.png">😁</g-emoji>.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany-plugins/issues/794#issuecomment-443016949">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ9c-Sanr9WV21aioC8VU0io1O74Oks5u0F7igaJpZM4Y5E1j">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJ0aLlkopWepyrZ-KTM1CHxmjVPm0ks5u0F7igaJpZM4Y5E1j.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany-plugins","title":"geany/geany-plugins","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany-plugins"}},"updates":{"snippets":[{"icon":"PERSON","message":"@elextr in #794: \u003e The following could result in undefined behavior:\r\n\r\nThe following is even more likely to be UB (not just IB):\r\n\r\n```\r\nint i1 = 1;\r\nint* ip = \u0026i1;\r\ndouble* dp = (double*)ip;\r\nint i1 = *((int*)dp);\r\n```\r\n\r\nExtra points for explaining where and why its _more_ likely to eat your shorts :grin:."}],"action":{"name":"View Issue","url":"https://github.com/geany/geany-plugins/issues/794#issuecomment-443016949"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany-plugins/issues/794#issuecomment-443016949",
"url": "https://github.com/geany/geany-plugins/issues/794#issuecomment-443016949",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [geany/geany-plugins] Scope breaks nightly with gcc 8 (#794)",
"sections": [
{
"text": "",
"activityTitle": "**elextr**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@elextr",
"facts": [

]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"geany/geany-plugins\",\n\"issueId\": 794,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"geany/geany-plugins\",\n\"issueId\": 794\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/geany/geany-plugins/issues/794#issuecomment-443016949"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 417615203\n}"
}
],
"themeColor": "26292E"
}
]</script>