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

Zdenek Sojka <zsojka at seznam dot cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zsojka at seznam dot cz

--- Comment #2 from Zdenek Sojka <zsojka at seznam dot cz> ---
Similar happens with _BitInt(<8):

$ cat testcase.c
char
foo ()
{
  _BitInt(7) b;
  if (__builtin_add_overflow (1, 2, &b))
    b = 0;
  return b;
}
$ x86_64-pc-linux-gnu-gcc -Og -ftrivial-auto-var-init=pattern
-Werror=uninitialized testcase.c 
testcase.c: In function 'foo':
testcase.c:4:14: error: 'b' is used uninitialized [-Werror=uninitialized]
    4 |   _BitInt(7) b;
      |              ^
cc1: some warnings being treated as errors

Reply via email to