On Fri, 24 Jan 2020, Prathamesh Kulkarni wrote:

> The middle-end representation issue of ERF_RETURNS_ARG still remains,
> which restricts the attribute till first four args. The patch simply
> emits sorry(), for arguments beyond first four..

I think this should be fixed (e.g. make the middle-end check for the 
attribute, or something like that).  The language semantics of the 
attribute should not be driven by such internal implementation details; 
rather, implementation details should be determined by the language 
semantics to be implemented.

The sorry () has coding style issues.  Diagnostics should not end with '.' 
or '\n', should use full words (attribute not attr, arguments not args) 
and programming language text in them should be surrounded by %<%> (so 
%<returns_arg%>).

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to