Re: [C++11 Patch] PR 50941

2011-11-03 Thread Ed Smith-Rowland
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

Re: [C++11 Patch] PR 50941

2011-11-03 Thread Paolo Carlini
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.

[C++11 Patch] PR 50941

2011-11-03 Thread Ed Smith-Rowland
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++.