Re: [PATCH] [Bug c++/49118] fake template nesting for operator-> chain

2011-06-09 Thread Jason Merrill
Applied, thanks. Jason

Re: [PATCH] [Bug c++/49118] fake template nesting for operator-> chain

2011-06-09 Thread David Krauss
On Jun 9, 2011, at 7:54 PM, Jason Merrill wrote: > Looks good, just need ChangeLog and testcase now. > > Jason The changelog is the .clog attachment to previous. I tried the testcase below but dejagnu seemed to hang with no compiler process running. I really don't know how to use dg, so perhap

Re: [PATCH] [Bug c++/49118] fake template nesting for operator-> chain

2011-06-09 Thread Jason Merrill
Looks good, just need ChangeLog and testcase now. Jason

Re: [PATCH] [Bug c++/49118] fake template nesting for operator-> chain

2011-06-09 Thread David Krauss
On Jun 6, 2011, at 1:28 PM, Jason Merrill wrote: > On 06/02/2011 03:25 PM, David Krauss wrote: >> Optimally the re-opened context would be the preceding operator-> function >> itself, to create the illusion of nested calls. However, the result of >> build_new_op may be a target_expr or a call_e

Re: [PATCH] [Bug c++/49118] fake template nesting for operator-> chain

2011-06-06 Thread Jason Merrill
On 06/02/2011 03:25 PM, David Krauss wrote: Optimally the re-opened context would be the preceding operator-> function itself, to create the illusion of nested calls. However, the result of build_new_op may be a target_expr or a call_expr. I'm not sure of the best way to recover the function

[PATCH] [Bug c++/49118] fake template nesting for operator-> chain

2011-06-02 Thread David Krauss
This is my first frontend contribution. While it fixes the crash and produces an explanatory error message, the message isn't quite right. I don't understand the message generation system so I might need help. Or, it looks like there's an issue with template backtraces at the moment anyway, so t