This looks to be an bug/feature/issue with g++ in all of the versions I can test it on. Running
int main()
{
int(*){} Is it C++14 or any other language?
}
On godbolt.org for all versions of g++ with no compilation flags give the following assembly ouput.
main:
pushq %rbp
movq %rsp, %rbp
movl $0, %eax
leave
ret
The only diagnosis I get is on godbolt.org and that is
!!warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x
Clang, ICC and MSVS all fail to compile this.
EDIT:
From the comments zwol filed a bug with gcc on this. The bug report can be found here.