search for: dbuilding_main

Displaying 1 result from an estimated 1 matches for "dbuilding_main".

Did you mean: building_main
2018 Jul 10
2
Is it really valid to discard externally instantiated functions from a TU when marked inline?
...ich I don't think Clang compiles properly. Here's the gist of the test case, reduced to the important parts (see the attachment if you want to repro): // RUN: %cxx -shared -o %T/libtest.so %flags %compile_flags -fPIC %s // RUN: %cxx -c -o %T/main.o %flags %compile_flags %s -O2 -DBUILDING_MAIN // RUN: %cxx -o %T/test.exe -L%T/ -Wl,-rpath,%T/ -ltest %T/main.o // RUN: %T/test.exe template <class T> struct Foo { inline __attribute__((visibility("hidden"))) int __init(int x) { /* LOTS OF CODE */ } inline __attribute__((visibility(&quo...