------- Comment #4 from pinskia at gcc dot gnu dot org 2006-12-27 00:38 ------- Here is the patch which I am going to test in the new year: Index: decl.c =================================================================== --- decl.c (revision 120211) +++ decl.c (working copy) @@ -4604,7 +4604,10 @@ which reshape_init exists). */ if (!first_initializer_p) { - if (TREE_CODE (init) == CONSTRUCTOR) + /* For non pointer to member functions, we might have + to reshape the constructor. */ + if (TREE_CODE (init) == CONSTRUCTOR + && !TYPE_PTRMEMFUNC_P (TREE_TYPE (init))) { /* For a nested compound literal, there is no need to reshape since brace elision is not allowed. Even if we decided to allow it,
-- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Keywords| |ice-on-invalid-code http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30221