1 2 3 4 5 6 7 8 9 10
#include <iostream> #include <vector> std::vector<int> meth() { } int main() { std::cout << meth().size() << std::endl; }
1 2 3
cc1plus: warnings being treated as errors In function '__gnu_debug_def::vector<int, std::allocator<int> > meth()': Line 6: warning: control reaches end of non-void function