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:

> if parmnum == 0 && last_arg is true then there is only one argument,
> so we give the second message. In any other case, there is more than
> one argument, so we give the first message.

Why is it worth having two messages?  The people reading the messages
are programmers; they'll understand that saying "argument 1" for a
1-argument function is just a computer being a bit redundant.

> parmnum is 0-based, I can document that in the function comment.

Then, is convert_for-initialization broken?

-- 
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]