I would say it is writing a program which writes an AI program. Why? Because it is so difficult for us to define what exactly an AI program should be able to do.
This shows that we have an issue with not being able to ask the right question. If we could answer exactly what the AI should be able to do then it would be much easier to create such a program and also create a program that writes such a program.
We could say that an AI program should pass the Turing Test and many have written programs that more or less pass it. But so now, write a program that writes several different programs that all pass the Turing Test one better than the previous one.
I don't really have an idea how I would start writing such a program that writes a program that passes the Turing Test better than previous AI programs. That makes me guess we are still far off from General AI. But I of course may be wrong, just because I don't know how to do something does not mean others would not.