<html>
    <head>
      <base href="http://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 WONTFIX - MS compatibility: Use token-based instantiation for -fdelayed-template-parsing"
   href="http://llvm.org/bugs/show_bug.cgi?id=18714">bug 18714</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;">Resolution</td>
           <td>---
           </td>
           <td>WONTFIX
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WONTFIX - MS compatibility: Use token-based instantiation for -fdelayed-template-parsing"
   href="http://llvm.org/bugs/show_bug.cgi?id=18714#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WONTFIX - MS compatibility: Use token-based instantiation for -fdelayed-template-parsing"
   href="http://llvm.org/bugs/show_bug.cgi?id=18714">bug 18714</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>(In reply to <a href="show_bug.cgi?id=18714#c1">comment #1</a>)
<span class="quote">> Can you give some pointers on the nature of the token transformation?

> Do you have a feel for the phases of token caching, instantiation and
> substitution that might be going on in MSVC?</span >


First, I just want to say that I've been talked out of this approach since I
filed this bug, so I'm closing it.  :)

Answering your question, yes, they appear to do roughly what
-fdelayed-template-parsing does: they parse class template bodies, but they
slurp the tokens from C++ inline method definitions and parse them once they
are instantiated and referenced.  I believe you *need* to use typename with
MSVC when appropriate in a class template body outside of C++ inline methods.

The key difference is that method bodies are *never* parsed prior to
instantiation.  The template parameters are substituted with arguments before
parsing, so MSVC always knows if a nested-name-specifier is a type.

Basically, I've gotten the hang of recovering from missing 'typename' now, so I
don't think it will be that hard to handle this without token substitution.</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>