mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 06:45: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:
parent
7eb2e1340a
commit
84add6a4bd
1 changed files with 6 additions and 1 deletions
|
@ -333,7 +333,12 @@ public class CPPASTQualifiedName extends CPPASTNameBase
|
||||||
|
|
||||||
while (binding instanceof ITypedef) {
|
while (binding instanceof ITypedef) {
|
||||||
ITypedef typedef = (ITypedef) binding;
|
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) {
|
if (binding instanceof ICPPClassType) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue