This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

SS 11/22 friend declares nothing


I don't know what this warning is telling me.

g++ -v:
   Reading specs from /usr/lib/gcc-lib/i586-unknown-linux-gnu/2.92.23/specs
   gcc version egcs-2.92.23 19981122 (gcc2 ss-980609 experimental)

g++ -c /tmp/f.cc:
   /tmp/f.cc:4: warning: declaration does not declare anything

/tmp/f.cc:
   class C;
   class c {
      public:
         friend C;
         c() {}
         ~c() {}
   };


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]