🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Jeff Gehlhaar Fri, 06 Nov 1992 03:27
GCC Bug..
#1284
Author: 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...."
======================================================
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