https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97853
Bug ID: 97853
Summary: [11 regression] go front end fails to bootstrap
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: go
Assignee: ian at airs dot com
Reporter: seurer at gcc dot gnu.org
CC: cmang at google dot com
Target Milestone: ---
I am still tracing where this started but it was within the past few days.
/home/seurer/gcc/git/gcc-trunk-bootstrap/gcc/go/gofrontend/go-diagnostics.cc:
In function 'std::string expand_message(const char*, va_list)':
/home/seurer/gcc/git/gcc-trunk-bootstrap/gcc/go/gofrontend/go-diagnostics.cc:110:61:
error: '<anonymous>' may be used uninitialized [-Werror=maybe-uninitialized]
110 | "memory allocation failed in vasprintf");
| ^
In file included from
/home/seurer/gcc/git/build/gcc-trunk-bootstrap/prev-powerpc64le-unknown-linux-gnu/libstdc++-v3/include/string:55,
from
/home/seurer/gcc/git/gcc-trunk-bootstrap/gcc/go/go-system.h:34,
from
/home/seurer/gcc/git/gcc-trunk-bootstrap/gcc/go/gofrontend/go-linemap.h:10,
from
/home/seurer/gcc/git/gcc-trunk-bootstrap/gcc/go/gofrontend/go-diagnostics.h:10,
from
/home/seurer/gcc/git/gcc-trunk-bootstrap/gcc/go/gofrontend/go-diagnostics.cc:7:
/home/seurer/gcc/git/build/gcc-trunk-bootstrap/prev-powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/basic_string.h:525:7:
note: by argument 3 of type 'const std::allocator<char>&' to
'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const
_CharT*, const _Alloc&) [with <template-parameter-2-1> = std::allocator<char>;
_CharT = char; _Traits = std::char_traits<char>; _Alloc =
std::allocator<char>]' declared here
525 | basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/home/seurer/gcc/git/gcc-trunk-bootstrap/gcc/go/gofrontend/go-diagnostics.cc:110:61:
note: '<anonymous>' declared here
110 | "memory allocation failed in vasprintf");
| ^