Re: A possible bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7 October 2014 10:28, Ivo Doko wrote:
> On 2014-10-07 10:57, Jonathan Wakely wrote:
>>
>> It's probably simply
>>
>> https://gcc.gnu.org/wiki/VerboseDiagnostics#missing_static_const_definition
>
>
> Once again I must apologise for spam, but this helped me solve the issue.
> Changing the declaration of function xorshift_engine::shift from
>
> shift(const result_type& val, const int_fast8_t& sh)
>
> to
>
> shift(const result_type& val, int_fast8_t sh)
>
> fixes the linker problem with optimisation disabled.

That's almost certainly an improvement anyway, the compiler can pass
an int_fast8_t in a register more efficiently than passing by
reference.

But you haven't actually fixed the root cause of the problem, which is
that you haven't defined your static variables.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux