Please don't cross-post to this list and to gcc-help, this question is
off-topic here
On Sat, 28 Jul 2018 at 04:01, Vladimir Reshetnikov
wrote:
>
> I'm trying to understand why gcc rejects the dynamic array allocation in
> the initializer of e (introducing an alias or additional parenthesization
I'm trying to understand why gcc rejects the dynamic array allocation in
the initializer of e (introducing an alias or additional parenthesization
suppress the error). Clang and MSVC happily compile this code. Does gcc
correctly reject this code?
template
void f() {
typedef void(*arr[T::value]