Article View: gnu.gcc.bug
Article #2765gcc -Wshadow/inline bug
From: Jan Edler
Date: Fri, 15 Dec 1989 19:04
Date: Fri, 15 Dec 1989 19:04
25 lines
801 bytes
801 bytes
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;
}
Technical Details
Message-ID:
<8912151904.AA00749@jan.ultra.nyu.edu>Path:
arc1-ca.pugleaf.net!utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!JAN.ULTRA.NYU.EDU!edlerShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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