[Bug c/46045] incorrect code generated if redecalring local variable in do-while(0)

2010-10-17 Thread mbuilov at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46045 --- Comment #4 from Michael Builov 2010-10-17 16:19:37 UTC --- Just a warning with -Wextra, but no warnings with -Wall -pedantic. I found a bug with this code: struct A { int k; int m; }; #define dump(_a_) \ do { \

[Bug c/46045] incorrect code generated if redecalring local variable in do-while(0)

2010-10-17 Thread mbuilov at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46045 --- Comment #3 from Michael Builov 2010-10-17 15:51:16 UTC --- Just a warning with -Wextra, but no warnings with -Wall -pedantic. I found a bug with this code: struct A { #definer dump(_a_) \ do { \ Struct A *a = _a_; \ printf("%d, %d\n",

[Bug c/46045] incorrect code generated if redecalring local variable in do-while(0)

2010-10-16 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46045 Richard Guenther changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug c/46045] incorrect code generated if redecalring local variable in do-while(0)

2010-10-16 Thread zsojka at seznam dot cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46045 Zdenek Sojka changed: What|Removed |Added CC||zsojka at seznam dot cz --- Comment #1 fro