This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/25019] Promoting long to long long generates no warning and/or incorrect result.
- From: "falk at debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Nov 2005 17:01:41 -0000
- Subject: [Bug c/25019] Promoting long to long long generates no warning and/or incorrect result.
- References: <bug-25019-11759@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from falk at debian dot org 2005-11-24 17:01 -------
Well, there's one actual issue here, namely that there is no warning about:
int f() {
int x = 40;
return 1 << x;
}
even though we could of course detect this, albeit probably only in the
middle-end. It might be difficult to get this warning to be emitted reliably
and without false positives from there.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25019