public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/32796] [4.3 Regression] internal compiler error: tree check: expected integer_type or enumeral_type or boolean_type or real_type, have pointer_type in int_fits_type_p Date: Wed, 18 Jul 2007 14:16:00 -0000 [thread overview] Message-ID: <20070718141619.14389.qmail@sourceware.org> (raw) In-Reply-To: <bug-32796-9876@http.gcc.gnu.org/bugzilla/> ------- Comment #5 from pinskia at gcc dot gnu dot org 2007-07-18 14:16 ------- Patch which needs testing: Index: c-typeck.c =================================================================== --- c-typeck.c (revision 126719) +++ c-typeck.c (working copy) @@ -8218,8 +8239,9 @@ < TYPE_PRECISION (result_type)) && (type = c_common_signed_or_unsigned_type (unsigned1, - TREE_TYPE (arg1)), - int_fits_type_p (arg0, type))) + TREE_TYPE (arg1))) + && !POINTER_TYPE_P (type) + && int_fits_type_p (arg0, type)) result_type = type; else if (TREE_CODE (arg1) == INTEGER_CST && (unsigned0 || !uns) @@ -8227,8 +8249,9 @@ < TYPE_PRECISION (result_type)) && (type = c_common_signed_or_unsigned_type (unsigned0, - TREE_TYPE (arg0)), - int_fits_type_p (arg1, type))) + TREE_TYPE (arg0))) + && !POINTER_TYPE_P (type) + && int_fits_type_p (arg0, type)) result_type = type; } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32796
next prev parent reply other threads:[~2007-07-18 14:16 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-07-17 18:00 [Bug c/32796] New: " bunk at stusta dot de 2007-07-17 18:05 ` [Bug c/32796] [4.3 Regression] " bunk at stusta dot de 2007-07-17 18:29 ` [Bug tree-optimization/32796] " belyshev at depni dot sinp dot msu dot ru 2007-07-17 20:34 ` belyshev at depni dot sinp dot msu dot ru 2007-07-17 21:05 ` [Bug c/32796] " pinskia at gcc dot gnu dot org 2007-07-18 14:16 ` pinskia at gcc dot gnu dot org [this message] 2007-08-04 11:54 ` pinskia at gcc dot gnu dot org 2007-08-06 3:47 ` pinskia at gcc dot gnu dot org 2007-08-09 21:39 ` pinskia at gcc dot gnu dot org 2007-08-09 21:40 ` pinskia at gcc dot gnu dot 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=20070718141619.14389.qmail@sourceware.org \ --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).