https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92986
--- Comment #4 from Geetesh More <geeteshmore at gmail dot com> --- I tried with -flto, but I'm not seeing any warning messages: g++ -std=c++0x -g -flto -Wodr main.cpp file2.cpp Am I missing anything here?