[Bug c/51437] GCC should warn on the use of reserved identifier/macro names

2022-09-23 Thread pavel.morozkin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51437 --- Comment #18 from Pavel M --- (In reply to Jonathan Wakely from comment #17) > (In reply to Josh Triplett from comment #5) > > I'd like to see this as well. While issuing such a warning by default would > > cause numerous warnings with existi

[Bug c/51437] GCC should warn on the use of reserved identifier/macro names

2022-09-23 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51437 Jonathan Wakely changed: What|Removed |Added CC||redi at gcc dot gnu.org --- Comment #1

[Bug c/51437] GCC should warn on the use of reserved identifier/macro names

2022-07-24 Thread pavel.morozkin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51437 Pavel M changed: What|Removed |Added CC||pavel.morozkin at gmail dot com --- Comment #1

[Bug c/51437] GCC should warn on the use of reserved identifier/macro names

2021-11-18 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51437 Thomas Koenig changed: What|Removed |Added Ever confirmed|0 |1 CC|

[Bug c/51437] GCC should warn on the use of reserved identifier/macro names

2012-02-19 Thread vanboxem.ruben at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51437 --- Comment #14 from Ruben Van Boxem 2012-02-19 21:51:37 UTC --- I don't think adding future reserved identifiers serves any purpose. In general, code is written against a certain version of a language's Standard, with the current constraints, no

[Bug c/51437] GCC should warn on the use of reserved identifier/macro names

2012-02-19 Thread josh at joshtriplett dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51437 --- Comment #13 from Josh Triplett 2012-02-19 18:56:28 UTC --- (In reply to comment #11) > (In reply to comment #10) > > (In reply to comment #9) > > > (Some of the other reserved identifier categories, such as E[A-Z0-9].*, > > > is[a-z].*, to[a-

[Bug c/51437] GCC should warn on the use of reserved identifier/macro names

2012-02-19 Thread josh at joshtriplett dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51437 --- Comment #12 from Josh Triplett 2012-02-19 18:50:34 UTC --- (In reply to comment #10) > (In reply to comment #9) > > However, note that the standards also reserve various other classes of > > names, > > such as types ending in _t, for which G

[Bug c/51437] GCC should warn on the use of reserved identifier/macro names

2012-02-19 Thread potswa at mac dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51437 --- Comment #11 from David Krauss 2012-02-19 11:09:28 UTC --- (In reply to comment #10) > (In reply to comment #9) > > However, note that the standards also reserve various other classes of > > names, > > such as types ending in _t, for which GC

[Bug c/51437] GCC should warn on the use of reserved identifier/macro names

2012-02-19 Thread vanboxem.ruben at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51437 --- Comment #10 from Ruben Van Boxem 2012-02-19 09:33:05 UTC --- (In reply to comment #9) > (In reply to comment #8) > > You really do want to flag both definition and usage. For instance, there's > > plenty of buggy software (especially GNU soft

[Bug c/51437] GCC should warn on the use of reserved identifier/macro names

2012-02-18 Thread josh at joshtriplett dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51437 --- Comment #9 from Josh Triplett 2012-02-19 06:29:27 UTC --- (In reply to comment #8) > You really do want to flag both definition and usage. For instance, there's > plenty of buggy software (especially GNU software like binutils) using __pid_t

[Bug c/51437] GCC should warn on the use of reserved identifier/macro names

2012-02-18 Thread bugdal at aerifal dot cx
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51437 --- Comment #8 from Rich Felker 2012-02-19 05:47:18 UTC --- You really do want to flag both definition and usage. For instance, there's plenty of buggy software (especially GNU software like binutils) using __pid_t and similar when it should be u

[Bug c/51437] GCC should warn on the use of reserved identifier/macro names

2012-02-18 Thread josh at joshtriplett dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51437 --- Comment #7 from Josh Triplett 2012-02-19 04:41:59 UTC --- (In reply to comment #6) > I would greatly like to see this as well; actually I was just about to file a > duplicate report when I found this, as a result of finding "struct _Color" in

[Bug c/51437] GCC should warn on the use of reserved identifier/macro names

2012-02-18 Thread bugdal at aerifal dot cx
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51437 Rich Felker changed: What|Removed |Added CC||bugdal at aerifal dot cx --- Comment #6 fro

[Bug c/51437] GCC should warn on the use of reserved identifier/macro names

2011-12-16 Thread potswa at mac dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51437 David Krauss changed: What|Removed |Added CC||potswa at mac dot com --- Comment #4 from

[Bug c/51437] GCC should warn on the use of reserved identifier/macro names

2011-12-06 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51437 --- Comment #3 from Jonathan Wakely 2011-12-06 13:34:36 UTC --- The C standard also reserves various names for future use in 7.26

[Bug c/51437] GCC should warn on the use of reserved identifier/macro names

2011-12-06 Thread vanboxem.ruben at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51437 --- Comment #2 from Ruben Van Boxem 2011-12-06 11:50:18 UTC --- (In reply to comment #1) > (In reply to comment #0) > > For C and C++, Clang > > Ahem! > > > For C++ a single underscore is also reserved for the global namespace. > > That comes

[Bug c/51437] GCC should warn on the use of reserved identifier/macro names

2011-12-06 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51437 --- Comment #1 from Jonathan Wakely 2011-12-06 11:37:39 UTC --- (In reply to comment #0) > For C and C++, Clang Ahem! > For C++ a single underscore is also reserved for the global namespace. That comes from C, not C++: "All identifiers that be