This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/38456] Suggestion: slight improvement of scoping rules



------- Comment #3 from lc235951 at students dot mimuw dot edu dot pl  2008-12-09 19:09 -------
I know I can turn on warnings or use some tricks like UNIQUIFY(), but it's just
cumbersome with large macros.

I also know that changing the standard is considered "not done", but in this
case it cannot have any undesirable consequences, because any code exploiting
this behaviour is by definition incorrect (except for the case that you want to
get a random value from the stack in a really strange way). The only drawback
is that users may get used to it and try it with other compilers, so I proposed
a warning.

Well, but if you insist on such strict compliance then let it be so. After all
it's not that very important.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38456


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]