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] |
On 09/19/2011 04:22 AM, Ed Smith-Rowland wrote:Duh. =:o)+check_literal_operator_args( const_tree decl,
Space before the (, not after.
I could and I thought abut it but from the wording (2.14.8 p3 and p4) it looks like the numeric argument gets first try, then raw literal then literal template. I thought I might as well let the preprocessor do the numeric conversion since I'll always check it first.Done. I am now storing the numeric string along with the number and the suffix ID for numeric operators. I'm keeping the numeric value because we need it too.
Can't you store the string and the suffix, and then interpret the number later if you end up calling an operator that takes the value?
Also, I put the check in that errors if both a raw literal and a literal template share the same name. That testcase now has dg stuff in it.
Jason
Attachment:
patch20
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |