[cfe-users] Stakoverflow exception while parsing clang test file p2-0x.cpp with clang frontend.

Hemant Bhagat via cfe-users cfe-users at lists.llvm.org
Fri Feb 24 01:28:59 PST 2017


Hi,

I have written a custom RecursiveASTVisitor class according to the following link.
http://clang.llvm.org/docs/RAVFrontendAction.html

Now I am giving clang source code to my frontend tool for analysis.
The problem is for the test case
llvm-3.8.1.src\tools\cfe-3.8.1.src\test\CXX\expr\expr.const\p2-0x.cpp

>From the documentation of this test case, It is for undefined behaviour.
But clang can generate its AST.
And while running ClangTool on this test it throws stackoverflow exception even before the control comes in HandleTranslationUnit.

I am really very confused about the control flow and why this exception is coming.
Is this the expected behaviour. Then how to traverse the generated AST and visit the nodes.

Thanks,
Hemant Bhagat

DISCLAIMER :- This e-mail may contain privileged and confidential information which is the property of Acellere GmbH and its associated companies. It is intended only for the use of the individual or entity to whom it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Acellere GmbH and its associated companies does not accept any liability for virus infected mails.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20170224/1f5e6fc5/attachment.html>


More information about the cfe-users mailing list