Created
November 26, 2018 03:18
-
-
Save kaityo256/8c5d9113947195a9351b75253854ba3e to your computer and use it in GitHub Desktop.
SIGILL on Mac OS X (Mojave) and GCC 8.2.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <string> | |
| double func(std::string &str) { | |
| } | |
| int main() { | |
| std::string str = "test"; | |
| func(str); | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why does the above generate ud2?