Path: utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!JAN.ULTRA.NYU.EDU!edler From: edler@JAN.ULTRA.NYU.EDU (Jan Edler) Newsgroups: gnu.gcc.bug Subject: gcc -Wshadow/inline bug Message-ID: <8912151904.AA00749@jan.ultra.nyu.edu> Date: 15 Dec 89 19:04:56 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 25 If I compile the following fragment with -Wshadow, I get bogus complaints about shadowing. The compiler is 1.90.01 for the IBM RT PC. Jan Edler edler@nyu.edu (212) 998-3353 --------- static inline int faa(int *a, int i) { int r = *a; *a += i; return r; } int tdr(int *a, int i) { if (*a < i) return 0; if (faa(a,-i) < i) { faa(a,i); return 0; } return 1; }