This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/16819] [3.4/3.5 regression] ICE with empty struct as arg


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]