This is the mail archive of the gcc@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]

Re: 3.0 wierdness


On Thu, 20 Dec 2001, Neil Booth wrote:

> Finny Merrill wrote:-
> 
> 
> Your file doesn't have 703 lines; and preprocesses fine for me.  So
> something else is the real problem.
> 
> Neil.
> 
The file I pasted it from has 703 lines, and it only happens when gcc 
3.0.x is combined with a version of glibc that defines printf as a macro 
but here's a different example:

#include <stdio.h>

int main() {
	#define TEST "blah"
	#define print_foo(x) puts(x)

	print_foo(TEST);
	return 0;
}

havent tested since I myself don't have gcc 3, but this is the basic idea


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]