Topic: inline' in friend declaration legal?
Author: jamshid@emx.cc.utexas.edu (Jamshid Afshar)
Date: 13 Aug 92 00:51:58 GMT Raw View
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