This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/16819] [3.4/3.5 regression] ICE with empty struct as arg
- From: "reichelt 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 Aug 2004 22:40:48 -0000
- Subject: [Bug target/16819] [3.4/3.5 regression] ICE with empty struct as arg
- References: <20040729123210.16819.lindig@cs.uni-sb.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-08-02 22:40 -------
Here's a further reduced code snippet:
=========================
double d=0;
struct A {} a;
void foo(struct A x)
{
d=0;
}
void bar()
{
if (d) foo(a);
}
=========================
This thing crashes at -O since gcc 2.95.x, so this is not really a regression.
Making foo static does not help. But the struct being empty seems to be
essential.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Keywords| |monitored
Summary|[3.4/3.5 regression] |[3.4/3.5 regression] ICE
|internal error (non-static |with empty struct as arg
|function call, empty struct |
|as arg) |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16819