http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46045
Summary: incorrect code generated if redecalring local variable
in do-while(0)
Product: gcc
Version: 4.5.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
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",
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 { \