Why the following code compiles without warning. Note that blablabla () is not defined by any means.
I tested it in gcc 5.1.0 and clang-3.7.0 (with and without the -std = C ++ 11 flag).
#include <string> int main() { std::string(blablabla()); }
These questions are not a duplicate of the most unpleasant parsing uncertainty, since related examples declare functions with a parameter.
c ++ c ++ 11 compilation compiler-errors
oo_miguel
source share