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
This commit is contained in:
Roger Sayle 2005-04-25 23:32:56 +00:00 committed by Roger Sayle
parent 817b4ef432
commit c2cab3e97a
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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>
* gcc.dg/stabs-attrib-vect-darwin.c: New test.

View File

@ -0,0 +1,8 @@
/* { dg-do compile } */
/* { dg-options "-O2" } */
template<int N> void foo()
{
double d = (N ? 0.0 : 0) + 1;
}