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]

C++ codegen bug for switch statement(s)


There was a report about that earlier, I have a small example.  It
fails only if foo is inline, using g++ (it compliles as C, not as
C++).  I used the Sep 11. 2000 snapshot.

Zoli

-------------- BEGIN ---------------
inline int
foo(int len)
{
  int ret = 0;
  switch (len)
    {
      case 0:
        ret = 1;
    }
  return 1;
}

int
bar(int len)
{
  return foo(len);
}
--------------- END ----------------

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