Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次の C++ コードが Visual Studio 2012 の Microsoft cl.exe コンパイラで受け入れられるのはなぜですか?
int x; struct A {} decltype(x) y;
明らかな間違いのように見えますが、上記のコードはコンパイル可能です。ただし、次のコードは正しく拒否されることに注意してください。
int x; struct A {} int y;
バグがあるからです。Microsoft Connect でそれを上げて、別のことに移りましょう!