This is the mail archive of the gcc-patches@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] |
In C, it's OK to write int i; int i; In C++, it is not. This patch adds a -Wc++-compat warning for this case. This patch requires approval from the C frontend maintainers.
shouldn't this in any case generate a warning in C, how can it be useful to do this, regardless of C++ compatibility.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |