mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-03 14:25:37 +02:00
Bug 140973 - Fix yet another ClassCastException...
This commit is contained in:
parent
df3aaeae35
commit
993f8f9e25
1 changed files with 2 additions and 1 deletions
|
@ -695,7 +695,8 @@ public class CPPSemantics {
|
|||
if( data.astName instanceof ICPPASTTemplateId && cls instanceof ICPPInternalTemplate ){
|
||||
ICPPASTTemplateId id = (ICPPASTTemplateId) data.astName;
|
||||
IType [] args = CPPTemplates.createTypeArray( id.getTemplateArguments() );
|
||||
cls = (ICPPClassType) ((ICPPInternalTemplate)cls).instantiate( args );
|
||||
IBinding inst = ((ICPPInternalTemplate)cls).instantiate( args );
|
||||
cls = inst instanceof ICPPClassType ? (ICPPClassType)inst : cls;
|
||||
}
|
||||
if( cls != null ){
|
||||
try {
|
||||
|
|
Loading…
Add table
Reference in a new issue