This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
C++ codegen bug for switch statement(s)
- To: gcc-bugs at gcc dot gnu dot org
- Subject: C++ codegen bug for switch statement(s)
- From: Hidvegi <hzoli at austin dot ibm dot com>
- Date: Wed, 13 Sep 2000 16:36:41 -0500 (CDT)
- Cc: pfeifer at dbai dot tuwien dot ac dot at, mark at codesourcery dot com
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 ----------------