[cfe-dev] __attribute__((weak)) possible regression in clang 3.6 since 3.5

Rafael EspĂ­ndola rafael.espindola at gmail.com
Tue Feb 17 08:35:46 PST 2015


Can you report a bug with a preprocessed file that shows the warning?
Or at least detailed instructions on how to build RxCpp?

On 16 February 2015 at 05:00, Ben Pope <benpope81 at gmail.com> wrote:
> 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
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev



More information about the cfe-dev mailing list