This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28337] [4.0/4.1/4.2 regression] ICE with string literals in templates
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jul 2006 17:31:59 -0000
- Subject: [Bug c++/28337] [4.0/4.1/4.2 regression] ICE with string literals in templates
- References: <bug-28337-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from mmitchel at gcc dot gnu dot org 2006-07-19 17:31 -------
Subject: Bug 28337
Author: mmitchel
Date: Wed Jul 19 17:31:51 2006
New Revision: 115596
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115596
Log:
PR c++/28337
* typeck.c (build_binary_op): Short-circuit pointer arithmetic in
templates.
PR c++/28337
* g++.dg/template/string1.C: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/template/string1.C
Modified:
branches/gcc-4_1-branch/gcc/cp/ChangeLog
branches/gcc-4_1-branch/gcc/cp/typeck.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28337