Recently, I wanted to ask a question concerning C++ code that did not compile with g++
. Just before posting the question, I thought: "Maybe this is a bug in g++?" and tried with Clang and it worked.
After searching a bit, I did not find any clear answer on which of the compilers is right - a bug in g++
or a non-standard feature in Clang.
Would it be on-topic to ask on Stack Overflow if such behavior is a bug in g++
or not (e.g. something that is not standard)?