JDK-6430924 : Hotspot doesn't build with gcc4.1
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2006-05-26
  • Updated: 2012-10-08
  • Resolved: 2006-07-29
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b93Fixed
Related Reports
Relates :  
Description
GCC4.1 become strogner in regard of some C++ patterns.
One heavily used in Hotspot is
class Foo {
 void Foo::bar() {}
};

which should be written as 
class Foo {
 void bar() {}
};

Also if some external inline function is declared as friend, its body is expected to be already seen. 

 Generally looks like useful cleanup + support for next major GCC release.

Comments
EVALUATION Modify code to make gcc 4.1 happy. See http://jruntime.east/~ni81036/webrev/6430924 and /net/lover.russia/export/users/ni81036/hotspot for webrev and workspace with suggested fix.
26-05-2006