<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:asl@math.spbu.ru" title="Anton Korobeynikov <asl@math.spbu.ru>"> <span class="fn">Anton Korobeynikov</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - illegal use of decltype in destructor silently accepted"
   href="http://llvm.org/bugs/show_bug.cgi?id=15801">bug 15801</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>asl@math.spbu.ru
           </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 - illegal use of decltype in destructor silently accepted"
   href="http://llvm.org/bugs/show_bug.cgi?id=15801#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - illegal use of decltype in destructor silently accepted"
   href="http://llvm.org/bugs/show_bug.cgi?id=15801">bug 15801</a>
              from <span class="vcard"><a class="email" href="mailto:asl@math.spbu.ru" title="Anton Korobeynikov <asl@math.spbu.ru>"> <span class="fn">Anton Korobeynikov</span></a>
</span></b>
        <pre>I'm seeing:

$ clang++ 1.cpp 
1.cpp:6:6: error: expected the class name after '~' to name a destructor
    ~decltype(*c)() { printf("DECLTYPE DESTROY\n"); }
     ^
1.cpp:6:16: error: C++ requires a type specifier for all declarations
    ~decltype(*c)() { printf("DECLTYPE DESTROY\n"); }
              ~^
1.cpp:10:8: error: expected ';' at end of declaration
    C c{};
       ^
       ;

So, fixed after 3.1</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>