------- Comment #1 from brian at dessent dot net 2008-12-09 18:53 ------- Subject: Re: New: Suggestion: slight improvement of scoping rules
I seriously don't think you will ever convince anyone to change a facet of gcc which is currently following the standard to something that is non-standard. Besides, you can solve the unique name problem like this: #define UNIQUIFY2(a,b) a##b #define UNIQUIFY1(a,b) UNIQUIFY2(a,b) #define UNIQUIFY(x) UNIQUIFY1(x_,__COUNTER__) #define macro(a) \ ({ \ __typeof(a) UNIQUIFY(a) = (a); \ /* ... some code ... */ \ }) __COUNTER__ was new in 4.3. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38456