[Bug c++/48003] Regression in Template Constants from 4.5.2
sefi@s-e-f-i.de
gcc-bugzilla@gcc.gnu.org
Sun Mar 6 12:29:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48003
Philipp <sefi@s-e-f-i.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sefi@s-e-f-i.de
--- Comment #1 from Philipp <sefi@s-e-f-i.de> 2011-03-06 12:29:29 UTC ---
Small testcase.
#include <climits>
template<int N>
struct test
{
typedef test<N - 1> prior;
};
typedef test<INT_MIN> foo;
foo f;
int main()
{
}
Of course INT_MIN - 1 is undefined but should gcc really evaluate it here?
More information about the Gcc-bugs
mailing list