[C++ PATCH] Fix udlit handling (PR c++/52521)

2012-03-13 Thread Jakub Jelinek
Hi! As detailed in the PR, we would return operator "" _a (const char *) when looking for 2 argument const char *, std::size_t literal operator, because the first argument matched and we ran out of arguments and didn't check we have them all. The following patch fixes it. Bootstrapped/regtested o

Re: [C++ PATCH] Fix udlit handling (PR c++/52521)

2012-03-13 Thread Jason Merrill
On 03/13/2012 04:17 PM, Jakub Jelinek wrote: I'm not 100% sure what should be done if some of the literal operators have default arguments. I'm not, either. Please add a comment about that; perhaps the comparison to void_list_node should be a call to sufficient_parms_p. OK with the added co