[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#349083: g++: internal compiler error: in simplify_subreg, at simplify-rtx.c



Package: g++-4.0
Version: 4.0.2-5

When I execute "g++ -O1 sample.cpp", the following message appears:

  sample.cpp: In function ?int main()?:
  sample.cpp:19: internal compiler error: in simplify_subreg, at simplify-rtx.c:3744
  Please submit a full bug report,
  with preprocessed source if appropriate.
  See <URL:http://gcc.gnu.org/bugs.html> for instructions.
  For Debian GNU/Linux specific bug reporting instructions,
  see <URL:file:///usr/share/doc/gcc-4.0/README.Bugs>.

It doesn't appear when I execute "g++ -O0 sample.cpp".

The content of "sample.cpp" (I'm sorry that it's so terribly stubified)

-- BEGIN ---
enum sample_enum
  {
  enum_test
  };

struct sample_struct
  {
  static const sample_enum struct_test[];
  };

const sample_enum sample_struct::struct_test[] = {enum_test};

extern int sample_extern();

int main()
  {
  for(int i = 0; i < sizeof(sample_struct::struct_test) / sizeof(sample_struct::struct_test[0]);
++i)
    {
    switch(sample_struct::struct_test[i])
      {
      case enum_test: sample_extern();
      }
    }
  return 0;
  }
-- END ---

I'm using Debian testing, latest release (as of 20. January 2006) precompiled
on i386. I'm also sorry that I couldn't test it with the unstable release.

I hope you can reproduce it and it's helpful for you.

Christoph Pfister




Reply to: