[cfe-commits] [PATCH][Windows] Mangle expression template arguments of pointer and reference types
Eli Friedman
eli.friedman at gmail.com
Wed Nov 14 10:59:03 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).
It's intentional; support for nullptr arguments to templates is new in C++11.
(I didn't look at the patch.)
-Eli
More information about the cfe-commits
mailing list