Trailing-Edge
-
PDP-10 Archives
-
SRI_NIC_PERM_FS_1_19910112
-
c/kcc/bug27.log
There are no other files named bug27.log in the archive.
[PHOTO: Recording initiated Thu 14-Dec-89 12:23pm]
End of PS:<KLH>COMAND.CMD.4
@ty bug27.c
#if 0
5-Dec-89 15:12:43-PST,1788;000000000005
Return-Path: <[email protected]>
Received: from saqqara.cis.ohio-state.edu by NIC.DDN.MIL with TCP; Tue, 5 Dec 89
15:12:32 PST
Received: by saqqara.cis.ohio-state.edu (5.61/4.891204)
id AA13911; Tue, 5 Dec 89 17:56:22 -0500
Date: 05 Dec 89 16:23:06 EST
From: <[email protected]>
To: <[email protected]>
Subject: EBUG33.C
Message-Id: <"CSI 5679-21691"@CompuServe.COM>
#endif
/* EBUG33.C */
main ()
{ /* Should generate error */
{ void f2int(int, int); f2int(1); }
/* Should generate error */
{ int i; void f2int(int, int); f2int(1,&i); }
/* Should generate error -- not internal error */
{ int (*pf)(); pf++; }
/* Should generate error -- not internal error */
{ int (*pf)(); ++pf; }
/* Should generate error */ /* &bit-field is invalid */
{ static struct bitf {unsigned a : 1; } bitf = {0}; ff(&bitf.a); }
/* Should generate error */ /* ®ister is invalid */
{ register int r1, r2, r3; ff(&r10); }
/* Should generate error */ /* operand of sizeof isn't lvalue for bit-field *
/
{ static struct bitf {unsigned a:1;} bitf = {0}; ff(sizeof(bitf.a)); }
/* Should generate error */ /* left operand of asst shall be modifiable lvalu
e */
{ typedef const struct ci { int i; } CI; CI a = {0}; a.i = 1; }
/* Should generate error */ /* member of const aggregate is const and ass't */
/* needs modifiable lvalue */
{ static const struct { int a; } cs = {9}; cs.a = 1; }
/* Should generate error */ /* result type and const char isn't modifiable */
{ char c; char *p = &c; * (1 ? (char *)p : (const char *)p) = 0; }
/* Should generate error */ /* Incompatible asst operands */
{ int i = 3; int *pi = &i; long int li = 4; long *pli = &li; pli = pi; }
}
@c2:nccx -S bug27
KCC: bug27
"bug27.c", line 18: [Warning] Number of args doesn't match function prototype
(main+2, p.1 l.18): erate error */ { void f2int(int, int); f2int(1);
"bug27.c", line 21: [Warning] Implicit conversion - pointer to int
(main+5, p.1 l.21): or */ { int i; void f2int(int, int); f2int(1,&i);
"bug27.c", line 30: [Note] Call to undeclared function "ff"
(main+14, p.1 l.30): tic struct bitf {unsigned a : 1; } bitf = {0}; ff(&
"bug27.c", line 33: [Note] Call to undeclared function "ff"
(main+17, p.1 l.33): er is invalid */ { register int r1, r2, r3; ff(&
"bug27.c", line 33: Undefined identifier: "r10"
(main+17, p.1 l.33): invalid */ { register int r1, r2, r3; ff(&r10);
"bug27.c", line 33: Operand of & must be lvalue
(main+17, p.1 l.33): invalid */ { register int r1, r2, r3; ff(&r10);
"bug27.c", line 34: [Note] Auto "r1" not used
(main+18, p.1 l.33): valid */ { register int r1, r2, r3; ff(&r10); }
"bug27.c", line 34: [Note] Auto "r2" not used
(main+18, p.1 l.33): valid */ { register int r1, r2, r3; ff(&r10); }
"bug27.c", line 34: [Note] Auto "r3" not used
(main+18, p.1 l.33): valid */ { register int r1, r2, r3; ff(&r10); }
"bug27.c", line 36: [Warning] Operand of sizeof has bitfield type
(main+20, p.1 l.36): itf {unsigned a:1;} bitf = {0}; ff(sizeof(bitf.a));
"bug27.c", line 50: [Warning] Implicit conversion - pointer to pointer
(main+34, p.1 l.50): = &i; long int li = 4; long *pli = &li; pli = pi;
?KCC - 2 errors detected
@pop
[PHOTO: Recording terminated Thu 14-Dec-89 12:24pm]