Re: A possible bug

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

 



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.

Still doesn't explain why the error otherwise happens only for two out of the three variables, but at least I know what I did wrong.

Thank you very much for the help!

--
Ivo Doko




[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