Bug#156450: gcc: doesn't handle empty args in macro function if there is only one arg
Package: gcc Version: 2:2.95.4-14 Severity: normal In C you are allowed to have empry arguments to macro function, however gcc-2.95.* doesn't seem to allow this for macro function with only one argument. I've included a C file that should work not matter what value the TST_SINGLE_ARG is set to. -- System Information Debian Release: 3.0 Architecture: i386 Kernel: Linux va 2.2.18pre11- #7 SMP Mon Feb 12 00:14:53 EST 2001 i686 Locale: LANG=C, LC_CTYPE=C Versions of packages gcc depends on: ii cpp 2:2.95.4-14 The GNU C preprocessor. ii cpp-2.95 1:2.95.4-7 The GNU C preprocessor. ii gcc-2.95 1:2.95.4-7 The GNU C compiler.
Bug#156450: Included file...
I did hit 'i' for include in reportbug, but I can't see it now so here it is... /* BEG: */ #include #define TST_SINGLE_ARG 0 #if TST_SINGLE_ARG # define EMAC(x) x EXIT_SUCCESS #else # define EMAC(x, y) x EXIT_SUCCESS #endif int main(void) { #if TST_SINGLE_ARG return (EMAC(,)); #else return (EMAC()); #endif } /* END: */ -- # James Antill -- [EMAIL PROTECTED] :0: * ^From: [EMAIL PROTECTED] /dev/null
Bug#450506: Fixed in 4.3.0
http://gcc.gnu.org/ml/gcc-patches/2008-01/msg01432.html Will be fixed in gcc-4.3.0-0.7. -- James Antill <[EMAIL PROTECTED]> Fedora -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]