This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/79927] 5.4.0: exponential notation triggers bogus "variably modified" warning
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 07 Mar 2017 06:03:40 +0000
- Subject: [Bug c/79927] 5.4.0: exponential notation triggers bogus "variably modified" warning
- Auto-submitted: auto-generated
- References: <bug-79927-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79927
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
1e6 is floating point. So:
>((1 << (sizeof(((struct my_struct *) 0)->n_usecs) * 8)) / ONE_MILLION
>= 16) - 1
is not integer constant expression.