Skip to content
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

compile error: not a constant expression #8

Open
iszihan opened this issue Feb 3, 2023 · 1 comment
Open

compile error: not a constant expression #8

iszihan opened this issue Feb 3, 2023 · 1 comment

Comments

@iszihan
Copy link

iszihan commented Feb 3, 2023

Hello, thank you for this code. I am seeing this error when I ran make in dts2tools

/Documents/projects/libdts2/vendor/libratss/vendor/mpreal/mpreal/mpreal.h:3198:91: error: ‘(-1.073741823e+9 * 3.0102999566398109e-1)’ is not a constant expression

Would anyone know why?

@dbahrdt
Copy link
Member

dbahrdt commented Feb 3, 2023

Which commit did you use?
Which compiler are you using?
I've seen this error before a long time ago and it should have been fixed already.
As far as I can tell the problem is that the result of the multiplication depends on the rounding mode and thus is not a constant expression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants