[Bug c++/90885] GCC should warning about 2^16 and 2^32 and 2^64
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jun 14 08:18:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90885
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
And maybe also 10^X where X is a literal.
https://codesearch.isocpp.org/cgi-bin/cgi_ppsearch?q=10+%5E&search=Search
A sample:
tp->tv_sec = attributes[0] / 10^9;
tp->tv_nsec = attributes[0] % 10^9;
range->pmin[TREND_FCT] = -10^10;
range->pmax[TREND_MEAN] = 10^10;
#define IRQ_CHINT5_LEVEL (12 ^ 7)
#define IRQ_CHINT4_LEVEL (11 ^ 7)
#define IRQ_CHINT3_LEVEL (10 ^ 7)
#define IRQ_CHINT2_LEVEL (9 ^ 7)
#define IRQ_CHINT1_LEVEL (8 ^ 7)
More information about the Gcc-bugs
mailing list