[Bug c++/50976] [C++0x] literal operator with unsigned long long parameter not accepted

jason at redhat dot com gcc-bugzilla@gcc.gnu.org
Thu Nov 10 19:27:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50976

--- Comment #18 from Jason Merrill <jason at redhat dot com> 2011-11-10 19:07:44 UTC ---
On 11/10/2011 10:53 AM, 3dw4rd at verizon dot net wrote:
> Potentail patch #2a.

> +		  t = TREE_VALUE (argtype);
> +		  if (!argtype)
> +		    return false;

If argtype is null, taking its TREE_VALUE will SEGV.

You can also check argtype == void_list_node to test for the end of the 
parameter list.

Jason



More information about the Gcc-bugs mailing list