Article View: comp.std.c++
Article #110'inline' in friend declaration legal?
From: Jamshid Afshar
Date: Thu, 13 Aug 1992 00:51
Date: Thu, 13 Aug 1992 00:51
23 lines
991 bytes
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
Technical Details
Message-ID:
<77601@ut-emx.uucp>Path:
arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!swrinde!news.dell.com!math.utexas.edu!ut-emx!emx.cc.utexas.eduShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!swrinde!news.dell.com!math.utexas.edu!ut-emx!emx.cc.utexas.edu From: jamshid@emx.cc.utexas.edu (Jamshid Afshar) Newsgroups: comp.std.c++ Subject: 'inline' in friend declaration legal? Message-ID: <77601@ut-emx.uucp> Date: 13 Aug 92 00:51:58 GMT Sender: jamshid@ut-emx.uucp Organization: The University of Texas at Austin; Austin, Texas Lines: 23