1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-03 22:35:43 +02:00

Bug 456340 ClassCastException when typedef refers to basic type

Change-Id: If1a65f6160e9398e1c40df194281414a4e422036
Signed-off-by: Michi <woskimi@yahoo.de>
Reviewed-on: https://git.eclipse.org/r/38845
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
This commit is contained in:
Michi 2014-12-30 14:09:24 +01:00 committed by Sergey Prigogin
parent 7eb2e1340a
commit 84add6a4bd

View file

@ -333,7 +333,12 @@ public class CPPASTQualifiedName extends CPPASTNameBase
while (binding instanceof ITypedef) {
ITypedef typedef = (ITypedef) binding;
binding = (IBinding) typedef.getType();
IType type = typedef.getType();
if (type instanceof IBinding) {
binding = (IBinding) type;
} else {
binding = null;
}
}
if (binding instanceof ICPPClassType) {