Consider this strange program:
int main()
{
int(*){} Is it C++14 or any other language?
}
(See a live demo here & here.)
Even though the comment //
is missing, the code compiles fine without any errors & warnings even when I use -pedantic-errors
options in g++ 6.0. This seems like a compiler bug to me. Is it really a bug in the compiler?