Created attachment 21928 [details] Compile Log I have been experimenting with c++ initializer lists and refactoring binutils to use c++. While doing so, the compiler crashed. I am reporting this in case it might help the development of the compiler. Compiler is : g++ (Ubuntu 4.4.1-4ubuntu9) 4.4.1 lsb version : 9.10 karmic with lots of backports and patches
Created attachment 21929 [details] Preprocessed .ii file This also crashes the compiler with the .ii file as well. The line that causes the problem is : const struct dis386 bad_opcode = { "(bad)", { XX } };
Created attachment 21930 [details] This compiles If I remove the following line: dis386(const char *name,const std::initializer_list<T_ops> & a); then the initializer compiles : struct dis386 { const char *name; typedef struct t_ops { op_rtn rtn; int bytemode; } T_ops; T_ops op[MAX_OPERANDS]; dis386(const char *name,std::initializer_list<T_ops> a); };
If you're testing features marked "experimental" then please use a current release or search existing bug reports, this doesn't seem to crash with 4.4.4 or later
please try to reproduce this with a current FSF release or report it to Ubuntu for C++0x bugs please try 4.5 or later, lots of initializer list bugs have been fixed already
Ok, I will have to look into it, thanks, mike On Mon, May 16, 2011 at 1:19 PM, redi at gcc dot gnu.org <gcc-bugzilla@gcc.gnu.org> wrote: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45853 > > Jonathan Wakely <redi at gcc dot gnu.org> changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > Status|UNCONFIRMED |WAITING > Last reconfirmed| |2011.05.16 11:00:14 > Ever Confirmed|0 |1 > > --- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-05-16 11:00:14 UTC --- > please try to reproduce this with a current FSF release or report it to Ubuntu > > for C++0x bugs please try 4.5 or later, lots of initializer list bugs have been > fixed already > > -- > Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email > ------- You are receiving this mail because: ------- > You reported the bug. >
No ICE on i686-pc-linux-gnu with: gcc version 4.4.5 (Debian 4.4.5-8) gcc version 4.4.5 (GCC) gcc version 4.5.2 (GCC) gcc version 4.6.0 (GCC)
Let's close this.