Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ctz
1 day ago
|
parent
|
context
|
favorite
| on:
UndefinedBehaviorSanitizer's Unexpected Behavior
I believe AIX C++ name mangling includes function argument type information (with CV qualifiers!) so this is a real-world case where this does actually break. I suspect curl does not compile with the C++ compiler though.
umanwizard
1 day ago
[–]
So does the Itanium ABI (which is what most people would think of as the normal/standard/usual C++ ABI):
$ c++filt _Z1fPFvPcE f(void (*)(char*))
But I'm struggling to understand how this would cause things to break.
reply
flohofwoe
1 day ago
|
parent
[–]
I guess only if you directly expose C++ APIs in DLLs, which is a bad idea anyway.
reply
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: