This is the mail archive of the gcc-patches@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]

Re: C/C++ PATCH: `case' handling


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


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