[llvm-bugs] [Bug 49767] New: Dumping AST to json triggers assertion with VLA array in function body

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Mar 29 18:28:35 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=49767

            Bug ID: 49767
           Summary: Dumping AST to json triggers assertion with VLA array
                    in function body
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: georgakoudis1 at llnl.gov
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

Dumping AST to json, using the parameter -ast-dump=json, causes an assertion on
clang:

clang++: /root/llvm-project/clang/lib/AST/ItaniumMangle.cpp:4968: void
{anonymous}::CXXNameMangler::mangleFunctionParam(const clang::ParmVarDecl*):
Assertion `parmDepth < FunctionTypeDepth.getDepth()' failed. 

This is a minimum failing example on godbolt:

https://godbolt.org/z/eefYGbcob

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210330/d5d686c5/attachment.html>


More information about the llvm-bugs mailing list