Obviously incorrect C++ code was accepted by cl.exe compiler -
i wonder why next c++ code accepted microsoft cl.exe compiler visual studio 2012?
int x; struct {} decltype(x) y; it looks obvious mistake, code above compilable. note, however, next code correctly rejected:
int x; struct {} int y;
because there bug. raise on microsoft connect , move on else!
c++ cl
No comments:
Post a Comment