🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Jamshid Afshar Thu, 13 Aug 1992 00:51
'inline' in friend declaration legal?
#110
Author: Jamshid Afshar
Date: Thu, 13 Aug 1992 00:51
23 lines
991 bytes
I believe the following is legal:

   inline void foo();
   class X {
      friend void foo();
   };
   main() { foo(); return 0; }
   inline void foo() {}

, but is 'inline' allowed in a friend declaration?

   class X {
      inline friend void foo();  // is 'inline' legal?
   };
   main() { foo(); return 0; }
   inline void foo() {}

BC++ 3.1 says no, but I think it's a compiler bug.  cfront and others
apparently allow it.  Can someone who is good with grammars confirm
this bug, please?  Post or e-mail and I'll post.

Thanks, Jamshid Afshar
jamshid@emx.utexas.edu
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