home *** CD-ROM | disk | FTP | other *** search
- Path: 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
-
- 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
-