[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#384052: gcc-3.3: gcc should (optionally) warn about use of reserved identifiers



Package: gcc-3.3
Version: 1:3.3.5-13
Severity: normal

Hi,

There are a fair range of reserved identifiers in C; it is a not uncommon
programming mistake for a coder to use one. It would be good if gcc told you
when you did this; it would need to avoid doing so for system headers, but
that's a general problem that gcc has already solved.

http://web.archive.org/web/20050321091104/oakroadsystems.com/tech/c-predef.htm

has a list of them, as does the C standard, but not collected together quite
so conveniently. I suggest -Wreserved-identifiers as the option name :)

Thanks,

Matthew

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.2.26
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages gcc-3.3 depends on:
ii  binutils              2.15-6             The GNU assembler, linker and bina
ii  cpp-3.3               1:3.3.5-13         The GNU C preprocessor
ii  gcc-3.3-base          1:3.3.5-13         The GNU Compiler Collection (base 
ii  libc6                 2.3.2.ds1-22sarge3 GNU C Library: Shared libraries an
ii  libgcc1               1:3.4.3-13         GCC support library

-- no debconf information



Reply to: