This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++] DR1473 - let literal operators be defined with empty user-defined string literal


On 06/26/2013 05:01 PM, Jason Merrill wrote:
On 06/26/2013 09:43 AM, Ed Smith-Rowland wrote:
+      if (bad_encoding_prefix)
+    error ("invalid encoding prefix in literal operator");
+      {
+    tree string_tree = USERDEF_LITERAL_VALUE (token->u.value);

No need to open a nested block for a declaration now that we're compiling as C++.

Otherwise, OK.

Jason


Here is the applied patch. I was unable to remove the code braces because the jump to default crosses the initialization.

Also, this has a much better detection of macros for Wstring-literal (which test broke with my previous patch).


Attachment: patch_DR1473_7
Description: Text document

Attachment: CL_DR1473
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]