🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1284

GCC Bug..

#1284
From: Jeff Gehlhaar
Date: Fri, 06 Nov 1992 03:27
42 lines
1544 bytes
One of my users sent me this. This is running on a sparc machine.

>
>// When compiled with
>//      g++ -v -c -Wshadow bug4.cc
>// this program produces
>//      Reading specs from
>/usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.3.1/specs
>//      gcc version 2.3.1
>//      bug4.cc: In function `unsigned char  Function (int)':
>//      bug4.cc:28: warning: declaration of `Shadow' shadows a member of `this'
>
>// Note that function Function is not a member function, so it has no `this'
>// pointer, so there should be no member of `this' to be shadowed.
>
>class Class
>{
>public:
>        Class(void);            // constructor
>        int Shadow(void);       // member function
>private:
>        long value;
>};
>
>Class::Class(void)
>{
>        value = 0;
>}
>
>static inline unsigned char
>Function(int Shadow)
>{
>        return 0;
>}
>
>

======================================================
Jeff Gehlhaar           Qualcomm Inc,  
jbg@qualcomm.com        San Diego, CA, USA
(619) 597-5241          "The Elegant Solution...."
======================================================
Technical Details
Message-ID: <9211061827.AA03517@harvey>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!qualcomm.com!jbg

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!qualcomm.com!jbg
From: jbg@qualcomm.com (Jeff Gehlhaar)
Subject: GCC Bug..
Message-ID: <9211061827.AA03517@harvey>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Fri, 6 Nov 1992 03:27:10 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 44