Bug 57637

Summary: g++ 3.2.1 requires keyword "class" after "friend"
Product: [Applications] kolf Reporter: Marc <marc.waeckerlin>
Component: generalAssignee: Jason Katz-Brown <jasonkb>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Solaris   
Latest Commit: Version Fixed In:

Description Marc 2003-04-24 11:32:00 UTC
Version:            (using KDE KDE 3.1.1)
Installed from:    Compiled From Sources
Compiler:          g++ 3.2.1 Sparc Solaris 8
OS:          Solaris

kolf/game.h:463 and 494 friend add "class"

It must be:
	friend class WallPoint;
and
	friend class Wall;

for new gcc to compile
Comment 1 Stephan Kulow 2003-04-24 12:59:11 UTC
Subject: KDE_3_1_BRANCH: kdegames/kolf

CVS commit by coolo: 

adding keyword class
CCMAIL: 57637-done@bugs.kde.org


  M +2 -2      game.h   1.92.2.1


--- kdegames/kolf/game.h  #1.92:1.92.2.1
@@ -461,5 +461,5 @@ private:
         long int lastId;
 
-        friend WallPoint;
+        friend class WallPoint;
 };
 class WallPoint : public QCanvasEllipse, public CanvasItem
@@ -492,5 +492,5 @@ private:
         long int lastId;
 
-        friend Wall;
+        friend class Wall;
 };
 class WallObj : public Object