Commit c2cab3e9 by Roger Sayle Committed by Roger Sayle

re PR c++/20995 (ICE in const_binop, at fold-const.c:1391)


	PR c++/20995
	* g++.dg/opt/pr20995-1.C: New test case.

From-SVN: r98745
parent 817b4ef4
2005-04-25 Roger Sayle <roger@eyesopen.com>
PR c++/20995
* g++.dg/opt/pr20995-1.C: New test case.
2005-04-25 Devang Patel <dpatel@apple.com> 2005-04-25 Devang Patel <dpatel@apple.com>
* gcc.dg/stabs-attrib-vect-darwin.c: New test. * gcc.dg/stabs-attrib-vect-darwin.c: New test.
......
/* { dg-do compile } */
/* { dg-options "-O2" } */
template<int N> void foo()
{
double d = (N ? 0.0 : 0) + 1;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment