[cfe-dev] CXXRecordDecl::viewInheritance crashes
Alex L via cfe-dev
cfe-dev at lists.llvm.org
Tue Feb 28 08:08:51 PST 2017
Thanks for reporting the issue!
I reproduced the issue and filed a bug report at
http://bugs.llvm.org/show_bug.cgi?id=32095 with the relevant portion of the
backtrace attached.
Alex
On 28 February 2017 at 15:30, David Come via cfe-dev <cfe-dev at lists.llvm.org
> wrote:
> Hello,
>
> I found that CXXRecordDecl::viewInheritance crashes on the following code
> when printing C inheritance
>
> template <class T> struct A {};
> template <class U> class C: A<U>{};
>
>
> My visitor for XXXRecordDecl is the following :
>
> bool Visitor::VisitCXXRecordDecl(clang::CXXRecordDecl *c) {
>
> if (c->getNumBases() || c->getNumVBases()) {
>
> c->viewInheritance(astContext);
>
> }
>
> return true;
>
> }
>
> I wanted to open a bug report but I don't have an account.
>
>
> Regards,
>
> Côme David
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170228/84d24a17/attachment.html>
More information about the cfe-dev
mailing list