r212237 - Update the MSVC compatibilty document for class template parsing

Kim Gräsman kim.grasman at gmail.com
Wed Jul 2 21:50:26 PDT 2014


Hi Reid,

Drive-by review...

On Thu, Jul 3, 2014 at 1:37 AM, Reid Kleckner <reid at kleckner.net> wrote:
>
> -In addition to the usual `dependent name lookup FAQs`_, Clang is often unable to
> -parse certain invalid C++ constructs that MSVC allows.  As of this writing,
> -Clang will reject code with missing ``typename`` annotations:
> +MSVC allows many invalid constructs in class templates that Clang has
> +historically rejected.  In order to parse widely distributed headers for
> +libraries such as the Active Template Library (ATL) and Windows Runtime Library
> +(WRL), some template rules have been relaxed or extended in Clang on Windows.
> +
> +The first major semantic difference is that MSVC appears to defer all parsing
> +an analysis of inline method bodies in class templates until instantiation

typo an -> and

- Kim



More information about the cfe-commits mailing list