This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: A possible bug


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]