https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86900
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Mon Nov 26 21:24:00 2018 New Revision: 266485 URL: https://gcc.gnu.org/viewcvs?rev=266485&root=gcc&view=rev Log: PR c++/86900 * dwarf2out.c (secname_for_decl): For functions with DECL_SECTION_NAME if in_cold_section_p, try to return current_function_section's name if it is a named section. * g++.dg/debug/dwarf2/pr86900.C: New test. Added: trunk/gcc/testsuite/g++.dg/debug/dwarf2/pr86900.C Modified: trunk/gcc/ChangeLog trunk/gcc/dwarf2out.c trunk/gcc/testsuite/ChangeLog