Re: Dynamically allocated array of function pointers

2018-07-28 Thread Jonathan Wakely
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

Dynamically allocated array of function pointers

2018-07-27 Thread Vladimir Reshetnikov
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]