Thread View: gnu.utils.bug
1 messages
1 total messages
Started by Thomas A Peterson
Wed, 06 Jan 1993 19:08
indent produces warnings
Author: Thomas A Peterson
Date: Wed, 06 Jan 1993 19:08
Date: Wed, 06 Jan 1993 19:08
45 lines
1226 bytes
1226 bytes
Program : indent
Version: 1.6
Machine: SPARCstation IPX
OS: SunOS4.1.1
Description:
The following chunk of code causes indent to produce warnings.
aristotle: cc -c indent_fail.c
aristotle: indent indent_fail.c
indent_fail.c: 6: Unbalanced parens
indent_fail.c: 6: Extra )
indent_fail.c: 17: Unbalanced parens
indent_fail.c: 17: Extra )
aristotle:
NOTE: I have no idea why C allows me to place a complete declaration
in a cast expression but it does.
/* indent_fails.c */
void main()
{
int a, j;
j =1;
a = (enum colors {red1, white1}) 1;
{
enum colors color;
color = white1;
}
}
void main1()
{
int a;
a = (int) (struct help { int a;} *) 1;
{
typedef struct help help_t;
help_t trash;
trash.a = 14;
}
}
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads