-
-
Notifications
You must be signed in to change notification settings - Fork 992
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gcc-4.9.x using c++1y - error: call to non-constexpr function #6868
Comments
c++1y being an earlier state of c++14 .See Arvid's comment. It's still a constant expression, this is likely a GCC issue. |
I created a new
And still getting that same error:
My C++ programming are quite far behind me but isn't line 238 EDIT: Just noticed, character 78 closes the |
the calculation of the constant has to be done at compile time, as a constrexpr value. As I'm sure you can see, that is a constant expression. However, it seems GCC 4.9 had not yet marked |
Closing this issue as I ended-up using Thnx. |
Please provide the following information
libtorrent version (or branch): using 2.0.6
platform/architecture: any (armv7, v8, ppc, x86_64, i686)
compiler and compiler version: gcc-4.9.4 and gcc-4.9.3
please describe what symptom you see, what you would expect to see instead and
how to reproduce it.
Synology Linux NAS using DSM-v6.x uses an older gcc-4.9.x (while newer DSM-7.x uses gcc-7.5). Issue is only occurring on DSM-6 with older gcc using
-std=c++1y
option to achieve c++14 "equivalence".error is the following to which I hope there may be a workaround it for this older compiler
c++1y
:See full log for more details: build-aarch64-6.1.log
Thnx in advance!
The text was updated successfully, but these errors were encountered: