[Bug c++/48912] New: [C++0x]Compiler abort silently
sscrisk at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri May 6 06:20:00 GMT 2011
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: unassigned@gcc.gnu.org
ReportedBy: sscrisk@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
More information about the Gcc-bugs
mailing list