[cfe-dev] extern array as non-type template argument with clang c++1z ?

Shuo Chen via cfe-dev cfe-dev at lists.llvm.org
Tue Aug 29 08:39:24 PDT 2017


Hi Richard,

On Mon, Aug 28, 2017 at 6:54 PM, Richard Smith <richard at metafoo.co.uk> wrote:

> I've implemented the most likely resolution for that standard
> issue in r311970, and your testcase is now accepted by Clang trunk.

Thanks for the quick turnaround.

> There are a couple of workarounds for this issue. If you specify the array
> bound, Clang will accept:
>
> extern const char tag[4];
> typedef X<tag> Y;

Thanks for your suggestion, it works perfectly in clang++ and g++.

Best Regards,
Shuo Chen



More information about the cfe-dev mailing list