https://bugs.llvm.org/show_bug.cgi?id=52490
Bug ID: 52490
Summary: Runtime crash can occur when modules built with -frtti
and -fno-rtti are linked into a single app.
Product: clang
Version: unspecified
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangb...@nondot.org
Reporter: kintz...@adobe.com
CC: blitzrak...@gmail.com, dgre...@apple.com,
erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
richard-l...@metafoo.co.uk
Created attachment 25447
--> https://bugs.llvm.org/attachment.cgi?id=25447&action=edit
simple example app
Runtime crash can occur when modules built with -frtti and -fno-rtti are linked
into a single app. Basically, we get two different definitions of
std::bad_function_call and the discrepancy in memory layout can cause a crash.
See attached example. It's very simple, only two functions and a script to
build it. See also additional notes about link order in that script
'makeAndRun'.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs