[Bug c/58823] New: Uninitialized variable warning is missing

2013-10-21 Thread nocannedmeat at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58823

Bug ID: 58823
   Summary: Uninitialized variable warning is missing
   Product: gcc
   Version: 4.8.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
  Assignee: unassigned at gcc dot gnu.org
  Reporter: nocannedmeat at gmail dot com

Command line.

gcc -W -Wall -Warray-bounds -pedantic -DSHOW_BUG=1 -c -o gcc-warn-bug
gcc-warn-bug.c

Version:

gcc.exe (rev2, Built by MinGW-builds project) 4.8.0
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Source file: gcc-warn-bug.c

#ifndef SHOW_BUG
# define SHOW_BUG 1 /* set to 0 to show the expected results */
#endif

float test() {
float x;
int y = 1;

#if SHOW_BUG
while( y ) {
#endif
x = x + 0.1f;
y = 0;
#if SHOW_BUG
}
#endif

( void )y;
return x;
}


[Bug c/58823] Uninitialized variable warning is missing

2013-10-21 Thread nocannedmeat at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58823

--- Comment #1 from Aaron Miller  ---
Created attachment 31057
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31057&action=edit
testcase


[Bug c++/14482] hard to avoid -Weffc++ warnings with union members

2011-06-29 Thread nocannedmeat at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14482

Aaron Miller  changed:

   What|Removed |Added

 CC||nocannedmeat at gmail dot
   ||com

--- Comment #6 from Aaron Miller  2011-06-29 
09:09:48 UTC ---
Confirmed for 4.5.2 "Ubuntu/Linaro 4.5.2-8ubuntu4"