https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121389
Bug ID: 121389
Summary: error: cannot tail-call: return value changed after
call
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: carlosgalvezp at gmail dot com
Target Milestone: ---
Created attachment 62042
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62042&action=edit
Preprocessed source
Hi,
We are bumping our GCC installation from
6db9d4e954bff3dfd926c7c9b71e41e47b7089c8 to
09f0768b55b96c861811a8989d7c1cc59b4c29b6 and encounter a compiler error, please
find the relevant info below.
- the exact version of GCC: 09f0768b55b96c861811a8989d7c1cc59b4c29b6
- the system type: Ubuntu 22.04
- the options given when GCC was configured/built:
./configure \
--enable-languages=c,c++ \
--enable-checking=release \
--disable-multilib
- the complete command line that triggers the bug:
g++ -fsanitize=address -c error.ii
- the compiler output (error messages, warnings, etc.):
In static member function ‘static const char*
google::protobuf::internal::TcParser::RepeatedEnum(google::protobuf::MessageLite*,
const char*, google::protobuf::internal::ParseContext*, const
google::protobuf::internal::TcParseTableBase*, uint64_t,
google::protobuf::internal::TcFieldData) [with TagType = unsigned char; short
unsigned int xform_val = 768]’,
inlined from ‘static const char*
google::protobuf::internal::TcParser::FastErR1(google::protobuf::MessageLite*,
const char*, google::protobuf::internal::ParseContext*, const
google::protobuf::internal::TcParseTableBase*, uint64_t,
google::protobuf::internal::TcFieldData)’ at
src/google/protobuf/generated_message_tctable_lite.cc:1076:75:
src/google/protobuf/generated_message_tctable_lite.cc:1065:57: error: cannot
tail-call: return value changed after call
- the preprocessed file (*.i*) that triggers the bug: see attached.
Thanks!