Bug 57637 - g++ 3.2.1 requires keyword "class" after "friend"
Summary: g++ 3.2.1 requires keyword "class" after "friend"
Status: RESOLVED FIXED
Alias: None
Product: kolf
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: Jason Katz-Brown
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-24 11:31 UTC by Marc
Modified: 2003-04-24 12:59 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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