[cfe-dev] __attribute__((weak)) possible regression in clang 3.6 since 3.5
Ben Pope
benpope81 at gmail.com
Mon Feb 16 02:00:44 PST 2015
Whilst compiling RxCpp with clang 3.6 I get this error (and lots more
very similar):
`.text.startup' referenced in section `.text.startup' of
CMakeFiles/rxcppv2_test.dir/home/ben/development/test/rxcpp/RxCpp/Rx/v2/test/subscriptions/subscription.cpp.o:
defined in discarded section
`.text.startup[_ZN5rxcpp22composite_subscription12shared_emptyE]' of
CMakeFiles/rxcppv2_test.dir/home/ben/development/test/rxcpp/RxCpp/Rx/v2/test/subscriptions/subscription.cpp.o
shared_empty is declared like this, in a header file:
__attribute__((weak)) composite_subscription
composite_subscription::shared_empty =
composite_subscription(detail::tag_composite_subscription_empty());
I don't know if that's valid or not. If it's not, what should it be?
It compiles with gcc-4.9.2, gcc-4.6.3, clang-3.4 and clang-3.5, that I'm
aware of.
Thanks,
Ben
More information about the cfe-dev
mailing list