Bug 46268 - Bug 46268 (Comparison against fixed-point type leads to crash

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug 46268 - Bug 46268 (Comparison against fixed-point type leads to crash

Vassil Vassilev via cfe-dev
Hello Team,
Regarding Bug 46268 (Comparison against fixed-point type leads to crash).

I have analyzed the stack trace and reproduced the issue in my local build. I see the crash happens in the function getAsComplexIntegerType() (clang/lib/AST/type.cpp).
In this case, the const auto *Complex = getAs<ComplexType>() is NULL, so the function returns NULL, it causes crash. I am not sure why  auto *Complex = getAs<ComplexType>() is NULL, If anyone knows about this function, please let me know.

Regards,
Nadaf.

_______________________________________________
cfe-dev mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: Bug 46268 - Bug 46268 (Comparison against fixed-point type leads to crash

Vassil Vassilev via cfe-dev

That means that the type being inspected is not a ComplexType.  You may wish to use ‘dump’ to inspect what the type actually is, then figure out why the code expects it to be ComplexType when it isn’t.

 

 

From: cfe-dev <[hidden email]> On Behalf Of Gousemoodhin Nadaf via cfe-dev
Sent: Thursday, June 11, 2020 9:04 AM
To: [hidden email]
Subject: [cfe-dev] Bug 46268 - Bug 46268 (Comparison against fixed-point type leads to crash

 

Hello Team,
Regarding Bug 46268 (Comparison against fixed-point type leads to crash).

I have analyzed the stack trace and reproduced the issue in my local build. I see the crash happens in the function getAsComplexIntegerType() (clang/lib/AST/type.cpp).
In this case, the const auto *Complex = getAs<ComplexType>() is NULL, so the function returns NULL, it causes crash. I am not sure why  auto *Complex = getAs<ComplexType>() is NULL, If anyone knows about this function, please let me know.

Regards,
Nadaf.


_______________________________________________
cfe-dev mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev