[Bug c++/55497] Local array (char[]) initialized with a size taken from a static variable creates an ICE

2012-11-27 Thread greg.burri at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55497 --- Comment #4 from Greg Burri 2012-11-27 22:31:05 UTC --- Actually the template is useless, the main point is this code put in a constructor: static const int v = get(1); char BUFFER[v];

[Bug c++/55497] Local array (char[]) initialized with a size taken from a static variable creates an ICE

2012-11-27 Thread greg.burri at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55497 --- Comment #3 from Greg Burri 2012-11-27 22:28:24 UTC --- Here we go, I attached the cpp file, just use this command line: g++ -g gcc_crash.cpp It compiles without issue if I omit the '-g' argument. It crashes on Ubuntu 12.10 an

[Bug c++/55497] Local array (char[]) initialized with a size taken from a static variable creates an ICE

2012-11-27 Thread greg.burri at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55497 --- Comment #2 from Greg Burri 2012-11-27 22:27:58 UTC --- Created attachment 28801 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28801 To segfault GCC 4.7.2 with '-g' arg

[Bug c++/55497] New: Local array (char[]) initialized with a size taken from a static variable creates an ICE

2012-11-27 Thread greg.burri at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55497 Bug #: 55497 Summary: Local array (char[]) initialized with a size taken from a static variable creates an ICE Classification: Unclassified Product: gcc Version: 4.7.2