http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55854
--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2013-01-03 13:03:49 UTC --- (In reply to comment #1) > I think it's the same as PR55763 comment 10. Seemingly not - at least with the patch from PR55763 comment 12, this example crashes in: #0 build_function_decl (sym=0x1658420, global=<optimized out>) at ../../gcc/fortran/trans-decl.c:1852 #1 0x0000000000613e37 in gfc_get_symbol_decl (sym=0x1658420) at ../../gcc/fortran/trans-decl.c:1370 The following assert fails for sym == "__copy_CLASS_0_": 1848 /* Allow only one nesting level. Allow public declarations. */ 1849 gcc_assert (current_function_decl == NULL_TREE 1850 || DECL_FILE_SCOPE_P (current_function_decl) 1851 || (TREE_CODE (DECL_CONTEXT (current_function_decl)) 1852 == NAMESPACE_DECL)); Here, "current_function_decl" is "function_decl bar.