Re: [C++ PATCH] ICE with invalid user-defined literals (PR c++/51420)

2011-12-07 Thread Jason Merrill
Applied, thanks. Jason

Re: [C++ PATCH] ICE with invalid user-defined literals (PR c++/51420)

2011-12-06 Thread Ed Smith-Rowland
On 12/06/2011 02:27 PM, Jason Merrill wrote: On 12/06/2011 08:21 AM, Ed Smith-Rowland wrote: * parser.c (lookup_literal_operator): Check that current overload is function_type. Instead of checking here, let's check is_overloaded_fn (decl) right after the lookup name. Jason OK, This passe

Re: [C++ PATCH] ICE with invalid user-defined literals (PR c++/51420)

2011-12-06 Thread Jason Merrill
On 12/06/2011 08:21 AM, Ed Smith-Rowland wrote: * parser.c (lookup_literal_operator): Check that current overload is function_type. Instead of checking here, let's check is_overloaded_fn (decl) right after the lookup name. Jason

[C++ PATCH] ICE with invalid user-defined literals (PR c++/51420)

2011-12-06 Thread Ed Smith-Rowland
This time with patch. gcc/testsuite: 2011-12-06 Ed Smith-Rowland <3dw...@verizon.net> PR c++/51420 * g++.dg/cpp0x/pr51420.C: New. gcc/cp: 2011-12-06 Ed Smith-Rowland <3dw...@verizon.net> PR c++/51420 * parser.c (lookup_literal_operator): Check that current overload is

[C++ PATCH] ICE with invalid user-defined literals (PR c++/51420)

2011-12-06 Thread Ed Smith-Rowland
gcc/testsuite: 2011-12-06 Ed Smith-Rowland <3dw...@verizon.net> PR c++/51420 * g++.dg/cpp0x/pr51420.C: New. gcc/cp: 2011-12-06 Ed Smith-Rowland <3dw...@verizon.net> PR c++/51420 * parser.c (lookup_literal_operator): Check that current overload is function_type.