Begin forwarded message:
Date: Thu, 02 Dec 2021 12:56:15 -0800 From: "yuri@FreeBSD" <notificati...@github.com> To: Yoshimi/yoshimi <yosh...@noreply.github.com> Cc: Subscribed <subscri...@noreply.github.com> Subject: [Yoshimi/yoshimi] 2.1.2.1: error: constexpr variable 'LN_BASE' must be initialized by a constant expression (Issue #156) It fails when built with clang-12: ``` /wrkdirs/usr/ports/audio/yoshimi/work/yoshimi-2.1.2.1/src/Misc/NumericFuncs.h:96:32: error: constexpr variable 'LN_BASE' must be initialized by a constant expression static constexpr float LN_BASE = log(fraction? 1.0/base : double(base)); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /wrkdirs/usr/ports/audio/yoshimi/work/yoshimi-2.1.2.1/src/Misc/NumericFuncs.h:109:12: note: in instantiation of template class 'func::(anonymous namespace)::PowerFunction<10, false>' requested here return PowerFunction<base>::invoke(exponent); ^ /wrkdirs/usr/ports/audio/yoshimi/work/yoshimi-2.1.2.1/src/Misc/NumericFuncs.h:129:12: note: in instantiation of function template specialization 'func::power<10>' requested here return power<10>(float(scale)/20.0f * param); ^ /wrkdirs/usr/ports/audio/yoshimi/work/yoshimi-2.1.2.1/src/Params/FilterParams.h:73:22: note: in instantiation of function template specialization 'func::decibel<-80>' requested here { return decibel<-80>(1.0f - amp / 127.0f); } ^ /wrkdirs/usr/ports/audio/yoshimi/work/yoshimi-2.1.2.1/src/Misc/NumericFuncs.h:96:42: note: non-constexpr function 'log' cannot be used in a constant expression static constexpr float LN_BASE = log(fraction? 1.0/base : double(base)); ^ /usr/include/math.h:252:8: note: declared here double log(double); ^ ``` OS: FreeBSD 13 -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/Yoshimi/yoshimi/issues/156 -- Will J Godfrey https://willgodfrey.bandcamp.com/ http://yoshimi.github.io Say you have a poem and I have a tune. Exchange them and we can both have a poem, a tune, and a song.
It fails when built with clang-12:
/wrkdirs/usr/ports/audio/yoshimi/work/yoshimi-2.1.2.1/src/Misc/NumericFuncs.h:96:32: error: constexpr variable 'LN_BASE' must be initialized by a constant _expression_
static constexpr float LN_BASE = log(fraction? 1.0/base : double(base));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/audio/yoshimi/work/yoshimi-2.1.2.1/src/Misc/NumericFuncs.h:109:12: note: in instantiation of template class 'func::(anonymous namespace)::PowerFunction<10, false>' requested here
return PowerFunction<base>::invoke(exponent);
^
/wrkdirs/usr/ports/audio/yoshimi/work/yoshimi-2.1.2.1/src/Misc/NumericFuncs.h:129:12: note: in instantiation of function template specialization 'func::power<10>' requested here
return power<10>(float(scale)/20.0f * param);
^
/wrkdirs/usr/ports/audio/yoshimi/work/yoshimi-2.1.2.1/src/Params/FilterParams.h:73:22: note: in instantiation of function template specialization 'func::decibel<-80>' requested here
{ return decibel<-80>(1.0f - amp / 127.0f); }
^
/wrkdirs/usr/ports/audio/yoshimi/work/yoshimi-2.1.2.1/src/Misc/NumericFuncs.h:96:42: note: non-constexpr function 'log' cannot be used in a constant _expression_
static constexpr float LN_BASE = log(fraction? 1.0/base : double(base));
^
/usr/include/math.h:252:8: note: declared here
double log(double);
^
OS: FreeBSD 13
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
_______________________________________________ Yoshimi-devel mailing list Yoshimi-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/yoshimi-devel