http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48912
Summary: [C++0x]Compiler abort silently Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: sscr...@gmail.com There is a infinity recursive constexpr function. constexpr int f() { return f(); } If evaluate f() compile time. Then compiler aborts silently and returns 1 to a console. All codes: constexpr int f() { return f(); } int main() { constexpr int i = f(); } Compile error: (nothing) Console: $ g++4.6 a.cpp $ echo $? 1