JDK-7019689 : Non-dependent name is found in dependent base class although it should be rejected
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: hs21
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-02-15
  • Updated: 2011-04-24
  • Resolved: 2011-04-24
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 7 Other
7Fixed hs21Fixed
Description
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47752

There's a C++ bug in the no-permgen symbol code, so on some compilers it doesn't compile.

From Volker Simonis.
With this new version I found a true C++ bug in
"src/share/vm/utilities/hashtable.hpp" which was introduced recently
by the "6990754: Use native memory and reference counting to implement
SymbolTable" change and which has to do with name lookup of
nondependent names in dependent base classes (see
http://www.parashift.com/c++-faq-lite/templates.html#faq-35.19 for a
nice explanation). Wouldn't have happened with Clang:)

Comments
EVALUATION Summary: fix hashtable.hpp to qualify non-dependant name with "this" Reviewed-by: phh, never, poonam
17-02-2011

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/3adec115d40d
17-02-2011