Is this a good or a bad question?
I personally think it is a great question, see below.
What makes this a good/bad question?
First of all, this question fails to fullfill many of the requirements given in How do I ask a good question?. But I'd argue that although these guidelines help writing a good question, not meeting them doesn't necessarily make a question a bad one. See for example How to exit the Vim editor?, How do you set, clear, and toggle a single bit? or What does "static" mean?. Are these "bad questions"?
In my opinion, a good question is one that can be answered without doubt and has the potential of being helpful to other readers as well. Following How do I ask a good question? is a good way to write good questions, still some of the greatest questions on the site don't. The question discussed here is caused by semantic differences of an old C standard and a newer C++ standard that aren't obvious to the asker, and it's not unlikely someone will hit the same confusion in the future and find the exact answer on SO. Isn't this what we want? It makes SO the invaluable resource it is today. Of course, the question doesn't mention that the asker tried to compile the code with either an older C++ compiler or a C compiler, but that's because the asker obviously wasn't aware ot that and the consequences, so the answer explaining it is very helpful.
Should this question be closed and if so, what's the appropriate close reason?
A good question should only be closed as a duplicate, if there is an exact one. This isn't the case for the discussed question. Another good reason to close a question is when it needs to be improved, so it can be reopened later. Some argue that this question needs clarification on which language the asker wants to use, therefore it should be closed as unclear what you're asking. In my opinion, although this information would definitely improve the question, it isn't needed in this case. From the result the asker expects and the one he gets, the question is absolutely clear, because there's only one possible explanation. The question would benefit from improving it, but it doesn't need to be improved, therefore it shouldn't be closed.
Which tags are appropriate for the question?
The question was originally tagged c and c++. This is almost always wrong, but there are exceptions, e.g. when the question is about differences between those two languages. Although it's very likely that the asker wasn't aware of that, it turns out the question is indeed about differences, so in this case, those two tags are appropriate. In my opinion, the tags c89 and c++11 should be added as well, because these are the exact versions of the standards that specify the things leading to the original confusion.
Should the asker gain reputation from this question?
My personal "feeling" here is: no. There's just too little effort going into this question, it's a good one merely by accident. But then, this is how SO works. The question is good, so it receives upvotes. This is IMHO not ideal, but I don't see what could be done about it.
Should the answerer gain reputation from his answer?
Definitely. Although I think the current score is a bit excessive (again, caused by just how SO works), it is a very helpful answer and should be honoured.