bug in indent 2.2.11
Prathamesh Kulkarni <[email protected]> Sat, 28 Jan 2012 07:51:25 -0500
| Newsgroups | gmane.comp.gnu.indent.bugs |
|---|---|
| Message-ID | <CAJXstsBcwLYNxeBSTm+8rugHmZLSQC9ts2pLXiZ6Qk88TTUjJg@mail.gmail.com> |
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) _______________________________________________ bug-indent mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-indent
foo.c
(text/x-csrc, 159 B)
#include <stdio.h>
#define _ int *
#define __ return
void
foo(_ ____)
{
*____ = 10;
}
int
main(void)
{
int a;
foo(&a);
printf("%d\n", a);
return 0;
}
foo_indent.c
(text/x-csrc, 167 B)
#include <stdio.h>
#define _ int *
#define __ return
void
foo (_____)
{
*____ = 10;
}
int
main (void)
{
int a;
foo (&a);
printf ("%d\n", a);
return 0;
}