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

            Bug ID: 119376
           Summary: protobuf-29.2 fails to build (error: cannot tail-call:
                    call may throw exception that does not propagate)
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
  Target Milestone: ---

Created attachment 60824
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60824&action=edit
generated_message_tctable_lite.cc.ii.xz

This newly fails with 15 because we support musttail now.

```
$ g++ -c .generated_message_tctable_lite.cc.ii -O2
In file included from
/var/tmp/portage/dev-libs/protobuf-29.2/work/protobuf-29.2/src/google/protobuf/generated_message_tctable_lite.cc:27:
/var/tmp/portage/dev-libs/protobuf-29.2/work/protobuf-29.2/src/google/protobuf/generated_message_tctable_impl.h:
In static member function ‘static const char*
google::protobuf::internal::TcParser::TagDispatch(google::protobuf::MessageLite*,
const char*, google::protobuf::internal::ParseContext*,
google::protobuf::internal::TcFieldData, const
google::protobuf::internal::TcParseTableBase*, uint64_t)’:
/var/tmp/portage/dev-libs/protobuf-29.2/work/protobuf-29.2/src/google/protobuf/generated_message_tctable_impl.h:1105:50:
error: cannot tail-call: call may throw exception that does not propagate
 1105 |   PROTOBUF_MUSTTAIL return
fast_entry->target()(PROTOBUF_TC_PARAM_PASS);
      |                             
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
```

---

```
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/15/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/configure
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/15
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/15/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15
--disable-silent-rules --disable-dependency-tracking
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/15/python
--enable-objc-gc --enable-languages=c,c++,d,go,objc,obj-c++,fortran,ada,m2
--enable-obsolete --enable-secureplt --disable-werror --with-system-zlib
--enable-nls --without-included-gettext --disable-libunwind-exceptions
--enable-checking=yes,extra,rtl --with-bugurl=https://bugs.gentoo.org/
--with-pkgversion='Gentoo Hardened 15.0.9999 p, commit
e36bfd9d8fde238e78a3ea7aacac14d2953f25ce' --with-gcc-major-version-only
--enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--enable-multilib --with-multilib-list=m32,m64 --disable-fixed-point
--enable-targets=all --enable-offload-defaulted
--enable-offload-targets=nvptx-none --enable-libgomp --disable-libssp
--enable-libada --enable-cet --disable-systemtap --disable-valgrind-annotations
--disable-vtable-verify --disable-libvtv --with-zstd --without-isl
--enable-default-pie --enable-host-pie --enable-host-bind-now
--enable-default-ssp --disable-fixincludes
--with-gxx-libcxx-include-dir=/usr/include/c++/v1
--with-build-config='bootstrap-lto bootstrap-cet'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 15.0.1 20250318 (experimental)
16065b6239aab2eecfd7a50f58d38324ee6478ba (Gentoo Hardened 15.0.9999 p, commit
e36bfd9d8fde238e78a3ea7aacac14d2953f25ce)
```

Reply via email to