This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/49507] [4.6/4.7 Regression] ICE because of defaulted template destructor


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.06.23 09:50:47
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |jason at gcc dot gnu.org
   Target Milestone|---                         |4.6.1
            Summary|ICE because of defaulted    |[4.6/4.7 Regression] ICE
                   |template destructor         |because of defaulted
                   |                            |template destructor
     Ever Confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-06-23 09:50:47 UTC ---
Indeed, a regression from 4.6.0, caused by PR47544 fix
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174071
on the trunk and
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174159
on 4.6 branch.

#0  0x00000000006f972a in initialize_vtbl_ptrs (addr=0x0) at
../../gcc/cp/init.c:120
#1  0x000000000051f017 in begin_destructor_body () at ../../gcc/cp/decl.c:13001
#2  0x00000000005201f5 in begin_function_body () at ../../gcc/cp/decl.c:13090
#3  0x0000000000716b58 in synthesize_method (fndecl=0x7ffff1a1be00) at
../../gcc/cp/method.c:741
#4  0x00000000005c8d63 in instantiate_decl (d=0x7ffff1a1be00, defer_ok=0,
expl_inst_class_mem_p=0 '\000') at ../../gcc/cp/pt.c:17738
#5  0x00000000005c9b94 in instantiate_pending_templates (retries=1) at
../../gcc/cp/pt.c:17884
#6  0x0000000000647e2c in cp_write_global_declarations () at
../../gcc/cp/decl2.c:3719

ICEs because current_class_ptr is NULL.  Jason, as this is a regression from
4.6.0, it might be desirable to fix it for 4.6.1 instead of deferring for
4.6.2.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]