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

            Bug ID: 117350
           Summary: ICE in pretty print during bootstrap
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ak at gcc dot gnu.org
  Target Milestone: ---

With --with-build-config=bootstrap-lto make autoprofiledbootstrap

I get

/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/ak/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/libstdc++-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 -Wwrite-strings -Wcast-qual -Wmissing-format-attribute
-Wconditionally-supported -Woverloaded-virtual -pedantic -Wno-long-long
-Wno-var
iadic-macros -Wno-overlength-strings  -DHAVE_CONFIG_H -fno-PIE
-fauto-profile=cc1plus.fda -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 gcc-urlifier.o -MT gcc-urlifier.o -MMD -MP
-MF ./.deps/gcc-urlifier.TPo ../../gcc/gcc/gcc-ur
lifier.cc
during GIMPLE pass: einline

In file included from
/home/ak/gcc/obj-auto/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/bits/unique_ptr.h:37,
                 from
/home/ak/gcc/obj-auto/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/memory:80,
                 from ../../gcc/gcc/system.h:766,
                 from ../../gcc/gcc/gcc-urlifier.cc:23:
in format_phase_2, at pretty-print.cc:2162
 2088 |         tuple()
      |         ^~~~~
0x27adb7f internal_error(char const*, ...)
        ../../gcc/gcc/diagnostic-global-context.cc:518
0x9ba31b fancy_abort(char const*, int, char const*)
        ../../gcc/gcc/diagnostic.cc:1580
0x9bd456 format_phase_2
        ../../gcc/gcc/pretty-print.cc:2162
0x9bd456 pretty_printer::format(text_info&)
        ../../gcc/gcc/pretty-print.cc:1712
0x282b62e pp_format(pretty_printer*, text_info*)
        ../../gcc/gcc/pretty-print.h:602
0x282b62e pp_format_verbatim(pretty_printer*, text_info*)
        ../../gcc/gcc/pretty-print.cc:2340
0x282b62e pp_verbatim(pretty_printer*, char const*, ...)
        ../../gcc/gcc/pretty-print.cc:2619
0xadef66 print_instantiation_full_context
        ../../gcc/gcc/cp/error.cc:3855
0xadef66 maybe_print_instantiation_context
        ../../gcc/gcc/cp/error.cc:4010
0xadef66 maybe_print_instantiation_context
        ../../gcc/gcc/cp/error.cc:4004
0x13c5e59 default_tree_diagnostic_text_starter
        ../../gcc/gcc/tree-diagnostic.cc:52
0x27ab84f diagnostic_text_output_format::on_report_diagnostic(diagnostic_info
const&, diagnostic_t)
        ../../gcc/gcc/diagnostic-format-text.cc:207
0x27acf66 diagnostic_context::report_diagnostic(diagnostic_info*)
        ../../gcc/gcc/diagnostic.cc:1357
0x27ad2ce diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag
(*) [1], diagnostic_t)
        ../../gcc/gcc/diagnostic.cc:1472
0x27adb7f internal_error(char const*, ...)
        ../../gcc/gcc/diagnostic-global-context.cc:518
0x9ba31b fancy_abort(char const*, int, char const*)
        ../../gcc/gcc/diagnostic.cc:1580
0x74fbd5 write_unscoped_name
        ../../gcc/gcc/cp/mangle.cc:1197
0xb23796 write_unscoped_template_name
        ../../gcc/gcc/cp/mangle.cc:1215
0xb23796 write_name
        ../../gcc/gcc/cp/mangle.cc:1122
0xb24a29 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.

Reply via email to