It looks like a bug / function / problem with g ++ in all versions that I can check for. Launch
int main() { int(*){} Is it C++14 or any other language? }
In godbolt.org, for all versions of g ++ without compilation flags, the following output from the assembly is given.
main: pushq %rbp movq %rsp, %rbp movl $0, %eax leave ret
The only diagnosis I get is on godbolt.org , and thatβs
!!warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x
Clang, ICC, and MSVS cannot compile this.
EDIT:
From zwol comments filed an error with gcc on this. An error report can be found here .
NathanOliver Nov 09 '15 at 17:24 2015-11-09 17:24
source share