<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:code@extbit.io" title="ExtBit Coding <code@extbit.io>"> <span class="fn">ExtBit Coding</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - Crash parsing friend constexpr function with noexcept(true) specifier"
   href="https://bugs.llvm.org/show_bug.cgi?id=47176">bug 47176</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>RESOLVED
           </td>
           <td>REOPENED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>FIXED
           </td>
           <td>---
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - Crash parsing friend constexpr function with noexcept(true) specifier"
   href="https://bugs.llvm.org/show_bug.cgi?id=47176#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - Crash parsing friend constexpr function with noexcept(true) specifier"
   href="https://bugs.llvm.org/show_bug.cgi?id=47176">bug 47176</a>
              from <span class="vcard"><a class="email" href="mailto:code@extbit.io" title="ExtBit Coding <code@extbit.io>"> <span class="fn">ExtBit Coding</span></a>
</span></b>
        <pre>Hi Richard,

I pulled 8c98c8803430804010da06a07cfb291dab59067c, but got parse bug again. My
guess is that you fixed the non-template version of friend-noexcept
specification. It looks like the template version is still not working,
considering this example:

  class Foo {
    template <typename X>
    friend void test(X, int = 0) noexcept(true) {}
  };

I got similar dumps like:

  PLEASE submit a bug report to  and include the crash backtrace, preprocessed 
  source, and associated run script.
  Stack dump:
  ....

I think you might want to add template-friend-noexcept test case for this:

diff --git a/clang/test/Parser/cxx0x-decl.cpp
b/clang/test/Parser/cxx0x-decl.cpp
index 4ddcb8ccfd..8be98d6ef2 100644
--- a/clang/test/Parser/cxx0x-decl.cpp
+++ b/clang/test/Parser/cxx0x-decl.cpp
@@ -199,6 +199,11 @@ namespace AliasDeclEndLocation {
   B something_else;
 }

+class PR47176 {
+  friend void f(PR47176, int = 0) noexcept(true) {}
+};
+static_assert(noexcept(f(PR47176())), "");
+
 struct Base { virtual void f() = 0; virtual void g() = 0; virtual void h() =
0; };
 struct MemberComponentOrder : Base {
   void f() override __asm__("foobar") __attribute__(( )) {}

Best Regards,
Duzy</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>