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:32:46 -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 #2 from mmitchel at gcc dot gnu dot org 2006-07-19 17:32 -------
Subject: Bug 28337
Author: mmitchel
Date: Wed Jul 19 17:32:38 2006
New Revision: 115597
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115597
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:
trunk/gcc/testsuite/g++.dg/template/string1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28337