https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117350

--- Comment #15 from ak at gcc dot gnu.org ---
I guess to debug have to figure what's different about the decl between the non
autofdo case and autofdo.

I tried to work around it by modifying the urlifier code to avoid the anonymous
name space, but it hits a similar bug later in gimple-range-fold.cc. Here is a
full build log of that attempt: http://firstfloor.org/~andi/l

/home/ak/gcc/obj-auto/./prev-gcc/xg++ -B/home/ak/gcc/obj-auto/./prev-gcc/
-B/usr/local/x86_64-pc-linux-gnu/bin/ -nostdinc++ -B/home/a
k/gcc/obj-auto/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-B/home/ak/gcc/obj-auto/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc+
+/.libs 
-I/home/ak/gcc/obj-auto/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu
 -I/home/ak/gcc/obj-auto/prev-x86_
64-pc-linux-gnu/libstdc++-v3/include  -I/home/ak/gcc/gcc/libstdc++-v3/libsupc++
-L/home/ak/gcc/obj-auto/prev-x86_64-pc-linux-gnu/libs
tdc++-v3/src/.libs
-L/home/ak/gcc/obj-auto/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs 
-fno-PIE -c   -g -O2 -fchecking=1 -
flto=jobserver -frandom-seed=1 -DIN_GCC    -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-error=narrowing -Wwri
te-strings -Wcast-qual -Wmissing-format-attribute -Wconditionally-supported
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variad
ic-macros -Wno-overlength-strings  -DHAVE_CONFIG_H -fno-PIE
-fauto-profile=cc1plus.fda -I. -I. -I../../gcc/gcc -I../../gcc/gcc/.
-I../../gcc/gcc/../include  -I../../gcc/gcc/../libcpp/include
-I../../gcc/gcc/../libcody  -I../../gcc/gcc/../libdecnumber -I../../gcc/gcc
/../libdecnumber/bid -I../libdecnumber -I../../gcc/gcc/../libbacktrace   -o
gimple-range-fold.o -MT gimple-range-fold.o -MMD -MP -MF
./.deps/gimple-range-fold.TPo ../../gcc/gcc/gimple-range-fold.cc
0x27a4b3f internal_error(char const*, ...)
        ../../gcc/gcc/diagnostic-global-context.cc:518
0x9bb2a5 fancy_abort(char const*, int, char const*)
        ../../gcc/gcc/diagnostic.cc:1693
0x9bdd90 format_phase_2
        ../../gcc/gcc/pretty-print.cc:2162
0x9bdd90 pretty_printer::format(text_info&)
        ../../gcc/gcc/pretty-print.cc:1712
0x282925e pp_format(pretty_printer*, text_info*)
        ../../gcc/gcc/pretty-print.h:602
0x282925e pp_format_verbatim(pretty_printer*, text_info*)
        ../../gcc/gcc/pretty-print.cc:2340
0x282925e pp_verbatim(pretty_printer*, char const*, ...)
        ../../gcc/gcc/pretty-print.cc:2619
0xae1ea3 print_instantiation_full_context
        ../../gcc/gcc/cp/error.cc:3807
0xae1ea3 maybe_print_instantiation_context
        ../../gcc/gcc/cp/error.cc:3962
0xae1ea3 maybe_print_instantiation_context                                     
                                                            
../../gcc/gcc/cp/error.cc:3956
0x13adc56 default_tree_diagnostic_text_starter
        ../../gcc/gcc/tree-diagnostic.cc:52
0x27a2ba0 diagnostic_text_output_format::on_report_diagnostic(diagnostic_info
const&, diagnostic_t)
        ../../gcc/gcc/diagnostic-format-text.cc:210
0x27a3f62 diagnostic_context::report_diagnostic(diagnostic_info*)
0x27a434e diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag
(*) [1], diagnostic_t)
        ../../gcc/gcc/diagnostic.cc:1585
0x27a4b3f internal_error(char const*, ...)
        ../../gcc/gcc/diagnostic-global-context.cc:518
0x9bb2a5 fancy_abort(char const*, int, char const*)
        ../../gcc/gcc/diagnostic.cc:1693
0x750805 write_unscoped_name
        ../../gcc/gcc/cp/mangle.cc:1197
0xb22496 write_unscoped_template_name
        ../../gcc/gcc/cp/mangle.cc:1215
0xb22496 write_name
        ../../gcc/gcc/cp/mangle.cc:1122
0xb23729 write_encoding
        ../../gcc/gcc/cp/mangle.cc:939
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to