[Bug c++/20995] [3.4 regression] ICE in const_binop, at fold-const.c:1391
cvs-commit at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Apr 25 19:59:00 GMT 2005
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-04-25 19:59 -------
Subject: Bug 20995
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: sayle@gcc.gnu.org 2005-04-25 19:58:53
Modified files:
gcc/cp : ChangeLog tree.c cp-tree.h call.c typeck.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/opt: pr20995-1.C
Log message:
PR c++/20995
Partial backport from mainline.
2004-09-27 Mark Mitchell <mark@codesourcery.com>
* tree.c (fold_if_not_in_template): New function.
* cp-tree.h (fold_if_not_in_template): Prototype here.
* call.c (build_conditional_expr): Use fold_if_not_in_template.
* typeck.c (build_binary_op): Likewise.
* g++.dg/opt/pr20995-1.C: New test case.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3892.2.212&r2=1.3892.2.213
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/tree.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.360.4.11&r2=1.360.4.12
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-tree.h.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.946.4.18&r2=1.946.4.19
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/call.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.452.2.24&r2=1.452.2.25
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/typeck.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.519.2.24&r2=1.519.2.25
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.381&r2=1.3389.2.382
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/opt/pr20995-1.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20995
More information about the Gcc-bugs
mailing list