indent version: 2.2.11
compiler: gcc 4.6.2
kernel: 3.1.2-1.fc16

There are two source files attached foo.c and foo_indent.c
foo_indent.c is obtained after running indent on foo.c ( indent foo.c -o
foo_indent.c )
foo.c compiles with gcc 4.6.2 but foo_indent.c fails to compile.

These are the error messages from gcc 4.6.2:
foo_indent.c: In function ‘foo’:
foo_indent.c:9:4: error: ‘____’ undeclared (first use in this function)
foo_indent.c:9:4: note: each undeclared identifier is reported only once
for each function it appears in

(This is the first time I am reporting a bug, I apologize if I have not
sent adequate information or if this issue was previously resolved or this
behavior is not a bug)
#include <stdio.h>

#define _  int *
#define __ return

void
foo(_ ____)
{
	*____ = 10;
}

int
main(void)
{
	int a;
	foo(&a);
	printf("%d\n", a);
	return 0;
}
#include <stdio.h>

#define _  int *
#define __ return

void
foo (_____)
{
  *____ = 10;
}

int
main (void)
{
  int a;
  foo (&a);
  printf ("%d\n", a);
  return 0;
}
_______________________________________________
bug-indent mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-indent

Reply via email to