[cfe-commits] [PATCH][Windows] Mangle expression template arguments of pointer and reference types

Nico Weber thakis at chromium.org
Wed Nov 14 11:08:30 PST 2012


On Wed, Nov 14, 2012 at 2:32 AM, Evgeny Eltsin <eaeltsin at google.com> wrote:
> Hi,
>
> This patch adds mangling of expression template arguments of pointer and
> reference types.
>
> I had to add a separate test for the case when template argument of pointer
> type is instantiated with 0/NULL/nullptr, as Clang only accepts that in
> C++11 mode (otherwise, it complains that 'non-type template argument does
> not refer to any declaration' - not sure if it is a bug or not, but
> implementation looks like that is intentional).

The driver passes -std=c++11 in microsoft mode, so this shouldn't be
an issue in practice. Having a separate test that passes -std=c++11 to
cc1 manually sounds like the right way to test this.

John will have to review the patch itself.

>
> wbr,
> Evgeny
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>



More information about the cfe-commits mailing list