[Bug tree-optimization/105423] Bogus -Werror=maybe-uninitialized with definitely initialized variable
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Apr 29 06:33:28 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105423
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Ever confirmed|0 |1
Blocks| |24639
Last reconfirmed| |2022-04-29
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
I'm getting
> ~/install/gcc-12/usr/local/bin/g++ -S t.ii -O -Werror=maybe-uninitialized
t.ii: In instantiation of 'std::Trans_NS___cxx11_basic_string<_CharT,
<template-parameter-1-2>, <template-parameter-1-3>
>::Trans_NS___cxx11_basic_string() [with _CharT = char; _Traits =
std::char_traits; <template-parameter-1-3> = char]':
t.ii:54:49: required from here
t.ii:37:37: error: no matching function for call to
'std::Trans_NS___cxx11_basic_string<char>::<unnamed
struct>::._anon_0(std::allocator_traits<std::allocator<char> >::pointer)'
37 | Trans_NS___cxx11_basic_string() : _M_dataplus(_M_local_data()) {}
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
t.ii:25:10: note: candidate:
'std::Trans_NS___cxx11_basic_string<char>::<unnamed struct>::<constructor>()'
25 | struct {
| ^
t.ii:25:10: note: candidate expects 0 arguments, 1 provided
...
so the testcase doesn't compile for me
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24639
[Bug 24639] [meta-bug] bug to track all Wuninitialized issues
More information about the Gcc-bugs
mailing list