<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [fuzz] Assertion `!PP.getSourceManager().isBeforeInTranslationUnit(origLoc, Tok.getLocation()) && "ParseFunctionTryBlock went over the cached tokens!"' failed."
   href="https://llvm.org/bugs/show_bug.cgi?id=21849">bug 21849</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>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>rnk@google.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [fuzz] Assertion `!PP.getSourceManager().isBeforeInTranslationUnit(origLoc, Tok.getLocation()) && "ParseFunctionTryBlock went over the cached tokens!"' failed."
   href="https://llvm.org/bugs/show_bug.cgi?id=21849#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [fuzz] Assertion `!PP.getSourceManager().isBeforeInTranslationUnit(origLoc, Tok.getLocation()) && "ParseFunctionTryBlock went over the cached tokens!"' failed."
   href="https://llvm.org/bugs/show_bug.cgi?id=21849">bug 21849</a>
              from <span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span></b>
        <pre>Doesn't crash:

$ clang -cc1 -std=c++11 -emit-llvm-only
~/Downloads/parse-function-try-block.cpp
C:/Users/rnk/Downloads/parse-function-try-block.cpp:2:3: error: C++ requires a
type specifier for all declarations
  x() try {
  ^
C:/Users/rnk/Downloads/parse-function-try-block.cpp:3:14: error: unknown type
name 'x'
    } catch (x x x
             ^
C:/Users/rnk/Downloads/parse-function-try-block.cpp:3:18: error: expected ')'
    } catch (x x x
                 ^
C:/Users/rnk/Downloads/parse-function-try-block.cpp:3:13: note: to match this
'('
    } catch (x x x
            ^
C:/Users/rnk/Downloads/parse-function-try-block.cpp:5:6: error: expected ';'
after struct
    }
     ^
     ;
C:/Users/rnk/Downloads/parse-function-try-block.cpp:2:3: error: functions
cannot be declared in an anonymous struct
  x() try {
  ^
C:/Users/rnk/Downloads/parse-function-try-block.cpp:1:1: error: anonymous
structs and classes must be class members
struct {
^
C:/Users/rnk/Downloads/parse-function-try-block.cpp:6:8: error: expected
unqualified-id
    int
       ^
7 errors generated.</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>