United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7019689 Non-dependent name is found in dependent base class although it should be rejected
JDK-7019689 : Non-dependent name is found in dependent base class although it should be rejected

Details
Type:
Bug
Submit Date:
2011-02-15
Status:
Closed
Updated Date:
2011-04-24
Project Name:
JDK
Resolved Date:
2011-04-24
Component:
hotspot
OS:
generic
Sub-Component:
runtime
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
hs21
Fixed Versions:
hs21 (b03)

Related Reports
Backport:

Sub Tasks

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

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

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



Hardware and Software, Engineered to Work Together