This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C/C++ PATCH: `case' handling
- To: Mark Mitchell <mark at codesourcery dot com>
- Subject: Re: C/C++ PATCH: `case' handling
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 12 Sep 2000 07:38:36 -0300
- Cc: gcc-patches at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <20000910143250E.mitchell@codesourcery.com>
On Sep 10, 2000, Mark Mitchell <mark@codesourcery.com> wrote:
> The C++ semantic analysis for case statements was still happenning at
> RTL-generation time. Fixed with this patch, which also shares a
> little more code between the C and C++ front-ends, and continues to
> prepare the C front-end for function-at-a-time mode.
FYI, this seems to have broken the following testcase:
struct foo {
inline void bar();
foo();
};
inline void foo::bar() {
switch (0) {
case 0:
break;
}
}
foo::foo() {
bar();
}
aoliva@guarana% ./cc1plus ~/t.ii -O1
void foo::bar () foo::foo ()
In file included from /home/guarana/aoliva/t.ii:14:
/home/guarana/aoliva/t.ii:8: Internal error #19991113.
/home/guarana/aoliva/t.ii:8: Internal compiler error in copy_body_r, at
cp/optimize.c:272
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me