------- Comment #5 from tbm at cyrius dot com  2007-04-26 12:44 -------
Here's a better, C based testcase:

[EMAIL PROTECTED]:~$ /usr/lib/gcc-snapshot/bin/gcc -c -O anthy-wordlist.c
anthy-wordlist.c: In function 'anthy_make_word_list_all':
anthy-wordlist.c:33: internal compiler error: internal consistency failure
Please submit a full bug report, [...]
[EMAIL PROTECTED]:~$ /usr/lib/gcc-snapshot/bin/gcc -c anthy-wordlist.c
[EMAIL PROTECTED]:~$

Testcase:

struct wtype
{
  unsigned int pos:5;
  unsigned int cos:4;
};
typedef struct wtype wtype_t;
struct word_list
{
  wtype_t wt;
};
extern wtype_t anthy_wtype_num_noun;
static void
make_pre_words (wtype_t x)
{
  wtype_t core_wt = x;
  anthy_wtype_include (anthy_wtype_num_noun, core_wt);
}
static void
make_word_list (int len)
{
  struct word_list tmpl;
  if (len == 1)
  {
      make_pre_words (tmpl.wt);
      make_suc_words (&tmpl);
  }
}
anthy_make_word_list_all ()
{
  int i;
  for (i = 0; i < 3; i++)
      make_word_list (i);
}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31674

Reply via email to