On 11/03/2011 08:50 AM, Paolo Carlini wrote:
On 11/03/2011 12:56 PM, Ed Smith-Rowland wrote:
+ len = TREE_STRING_LENGTH (value)
+/ TREE_INT_CST_LOW (TYPE_SIZE_UNIT ( TREE_TYPE(TREE_TYPE
(value - 1;
... with open brackets in random positions ;)
Paolo.
Arrrgh! ;-)
Here's a new patch
On 11/03/2011 12:56 PM, Ed Smith-Rowland wrote:
+ len = TREE_STRING_LENGTH (value)
+ / TREE_INT_CST_LOW (TYPE_SIZE_UNIT ( TREE_TYPE(TREE_TYPE (value - 1;
... with open brackets in random positions ;)
Paolo.
Greetings,
Here is a one liner and a test case.
Checked on x86_64-linux-gnu.
Ed
Index: gcc/testsuite/g++.dg/cpp0x/udlit-string-length.C
===
--- gcc/testsuite/g++.dg/cpp0x/udlit-string-length.C(revision 0)
+++ gcc/testsuite/g++.