<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Wait, why are we trying to mangle the local var decl here? Doesn't
    seem to repro on TOT for me, can you provide a
    backtrace/preprocessed source/a clang invocation for this?<br>
    <br>
    Erik<br>
    <br>
    <div class="moz-cite-prefix">On 1/24/19 3:22 AM, Ding Fei via
      cfe-dev wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAPVVTEB+ARp5jbh2DzxMTrVgrucR8hyMn9_UMkMOJwmAd9ch1A@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi all,<br>
        <br>
        On release_70, for the example code:<br>
        <b><br>
        </b>
        <blockquote style="margin:0 0 0 40px;border:none;padding:0px"><b>#include
            <type_traits></b><b><br>
          </b><b>class Node {};</b><b><br>
          </b><b>template<typename GetBeginT><br>
          </b><b>void buildGenericSCCs(GetBeginT &&GetBegin) {<br>
          </b><b>  decltype(GetBegin(std::declval<Node &>()))
            DFSStack;<br>
          </b><b>}<br>
          </b><br>
        </blockquote>
        In Mangle.h when calling mangleCXXName() on VarDecl of DFSStack,
        assertion triggered:<br>
        <br>
        <b>tools/clang/lib/AST/ItaniumMangle.cpp:4317: void (anonymous
          namespace)::CXXNameMangler::mangleFunctionParam(const
          clang::ParmVarDecl *): Assertion `parmDepth <
          FunctionTypeDepth.getDepth()' failed.</b>
        <div><b><br>
          </b>Do anyone have any ideas on the cause of it? Thanks<br>
          --<br>
          Best Regards<br>
          <br>
          Ding Fei<br>
          E-mail: <a href="mailto:danix800@gmail.com"
            moz-do-not-send="true">danix800@gmail.com</a></div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
cfe-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>