[Bug c/90219] Wrong source location for "cannot convert to a pointer type" warning

2021-05-05 Thread tbaeder at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90219 Timm Bäder changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug c/90219] Wrong source location for "cannot convert to a pointer type" warning

2019-04-25 Thread tbaeder at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90219 --- Comment #2 from Timm Bäder --- (In reply to Jonathan Wakely from comment #1) > Well if you took the address you wouldn't need to cast it to (float*) Sure, this was just a dumbed-down version of the original code.

[Bug c/90219] Wrong source location for "cannot convert to a pointer type" warning

2019-04-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90219 --- Comment #1 from Jonathan Wakely --- (In reply to Timm Bäder from comment #0) > Using gcc 8.3.1 and the following sample code: > > static int use_float(float *f) { > return (int)*f; > } > > // Type your code here, or load an example. > i

[Bug c/90219] Wrong source location for "cannot convert to a pointer type" warning

2019-04-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90219 Jonathan Wakely changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIR