Bug#477010: taking the address of a macro

2008-05-07 Thread Christopher L Conway
The attached patch against the original source tree should solve the problem. Regards, Chris On Tue, May 6, 2008 at 10:43 PM, Christopher L Conway <[EMAIL PROTECTED]> wrote: > The problem is that the relevant lines are trying to create function > pointers, but the identifiers named are really ma

Bug#477010: taking the address of a macro

2008-05-06 Thread Christopher L Conway
The problem is that the relevant lines are trying to create function pointers, but the identifiers named are really macros. The following example gives a similar error: macroptr.c: int f(int x, int y, int z) { return 0; } #define FOO(x) f(x,0,0) int (*p)() = &f; int (*q)() = &FOO; $ gcc macropt