This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/21894] [4.0/4.1 Regression] Invalid operand to binary operator with nested function
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jun 2005 23:33:48 -0000
- Subject: [Bug middle-end/21894] [4.0/4.1 Regression] Invalid operand to binary operator with nested function
- References: <20050602232343.21894.fjahanian@apple.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-02 23:33 -------
Confirmed, reduced testcase:
void CheckFile ()
{
char tagname[10]; char * a = tagname;
int validate()
{
return (a == tagname+4);
}
if(a == tagname)
validate();
}
t.c: In function ?CheckFile?:
t.c:11: error: Invalid operand to binary operator
FRAME.1D.1246.aD.1249;
t.c:11: internal compiler error: verify_stmts failed.
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |rth at gcc dot gnu dot org
Status|UNCONFIRMED |NEW
Component|tree-optimization |middle-end
Ever Confirmed| |1
GCC build triplet|apple-ppa-darwin |
GCC host triplet|apple-ppc-darwin |
GCC target triplet|apple-ppa-darwin |
Keywords| |ice-on-valid-code
Last reconfirmed|0000-00-00 00:00:00 |2005-06-02 23:33:47
date| |
Summary|gcc crashes with -O1 on a |[4.0/4.1 Regression] Invalid
|call to nested function |operand to binary operator
| |with nested function
Target Milestone|--- |4.0.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21894