Visual studio does not accept it either =). Try template <class X> class AAA { };
class BBB { friend class AAA; } ...This compiles too. class CCC { friend class AAA< int >; } Brad "Kristian Penno" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I was under the impression that the following code was legal. > Codewarrior gives me a "declaration syntax error" on the word friend. > Any language options I might have wrong? > > template <class X> > class AAA > { > }; > > class BBB > { > template <class X> friend class AAA; > }; > > > KP > > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/