-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
warning for vector<float> but not vector<int> #3481
Comments
GCC 14 hasn't been released yet but I wasn't able to repro the issue on the GCC trunk in godbolt: https://godbolt.org/z/MYKTr7cKx. Could you provide a link to the godbolt repro? |
Very interesting: add |
OK, it does repro (https://godbolt.org/z/cqjrM3s7e) and it's actually a warning:
|
Oh dear: my system build adds So the surprise is that int & float behave differently, but I suppose this can be closed as NOTABUG. |
This is a false positive suppressed in 977d887. I recommend reporting to GCC. |
Using today's
g++ (GCC) 14.0.0 20230610 (experimental)
on today's fmt checkout 8fe893c, the following simple codecompiles and does what you expect.
If I change
vector<int>
tovector<float>
(optionally changing1
to1.0f
etc.), the code fails to compile.The head and tail of the error message spew is:
The text was updated successfully, but these errors were encountered: