This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PR c++/34758 Bad diagnostic for circular dependency in constructor default argument


Manuel López-Ibáñez wrote:
> 2009/2/12 Mark Mitchell <mark@codesourcery.com>:
>> +      error ("%qD needs to be declared before called with a default
>> argument "
>> +            "for parameter %P", fn, parmnum);
>>
>> This message is unclear.  Let's go with:
> 
> What is unclear about the message? I tried hard to find an unambiguous
> wording and put some of my free time on it. I will certainly
> appreciate a more elaborated explanation, if you may.

It's both ungrammatical, and, in my opinion, ambiguous.  For example,
you can't call things with a default argument.  It's possible I don't
exactly understand what you're trying to get at with the message.

What's parmnum?  The parameter of the function being declared right now?
 Or the parameter in the callee that has a default value that has not
yet been processed?

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]