public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/107846] [13 Regression] error: result of '8000 << 8' requires 22 bits to represent, but 'short int' only has 16 bits Date: Wed, 23 Nov 2022 19:12:02 +0000 [thread overview] Message-ID: <bug-107846-4-J93reZwiNR@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-107846-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107846 --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- #0 warning_at (location=0, opt=765, gmsgid=0x30ecaf8 "result of %qE requires %u bits to represent, but %qT only has %u bits") at /home/apinski/src/upstream-gcc-git/gcc/gcc/diagnostic.cc:1845 #1 0x0000000000d3a2e2 in maybe_warn_shift_overflow (loc=0, op0=0x7ffff6e949c0, op1=0x7ffff6e94960) at /home/apinski/src/upstream-gcc-git/gcc/gcc/c-family/c-warn.cc:2645 #2 0x0000000000c62e14 in c_fully_fold_internal (expr=0x7ffff6e84cf8, in_init=false, maybe_const_operands=0x7fffffffce5b, maybe_const_itself=0x7fffffffce5a, for_int_const=false, lval=false) at /home/apinski/src/upstream-gcc-git/gcc/gcc/c/c-fold.cc:429 #3 0x0000000000c62358 in c_fully_fold_internal (expr=0x7ffff6e84d20, in_init=false, maybe_const_operands=0x7fffffffce5b, maybe_const_itself=0x7fffffffce5a, for_int_const=false, lval=false) at /home/apinski/src/upstream-gcc-git/gcc/gcc/c/c-fold.cc:354 #4 0x0000000000c63089 in c_fully_fold_internal (expr=0x7ffff6e96420, in_init=false, maybe_const_operands=0x7fffffffce5b, maybe_const_itself=0x7fffffffce5a, for_int_const=false, lval=false) at /home/apinski/src/upstream-gcc-git/gcc/gcc/c/c-fold.cc:473 #5 0x0000000000c614ab in c_fully_fold (expr=0x7ffff6e96420, in_init=false, maybe_const=0x7fffffffce5b, lval=false) at /home/apinski/src/upstream-gcc-git/gcc/gcc/c/c-fold.cc:125
next prev parent reply other threads:[~2022-11-23 19:12 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-11-23 17:45 [Bug target/107846] New: " james.hilliard1 at gmail dot com 2022-11-23 18:26 ` [Bug target/107846] " david.faust at oracle dot com 2022-11-23 19:02 ` pinskia at gcc dot gnu.org 2022-11-23 19:09 ` [Bug c/107846] [13 Regression] " pinskia at gcc dot gnu.org 2022-11-23 19:12 ` pinskia at gcc dot gnu.org [this message] 2022-11-23 19:20 ` jakub at gcc dot gnu.org 2022-11-29 15:26 ` jakub at gcc dot gnu.org 2022-11-29 18:57 ` james.hilliard1 at gmail dot com 2022-11-29 18:59 ` jakub at gcc dot gnu.org 2022-11-29 19:00 ` pinskia at gcc dot gnu.org 2022-11-29 19:06 ` james.hilliard1 at gmail dot com 2023-03-04 9:15 ` cvs-commit at gcc dot gnu.org 2023-03-04 9:24 ` jakub at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-107846-4-J93reZwiNR@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).