This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR c++/34758 Bad diagnostic for circular dependency in constructor default argument
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.
> "In default argument to parameter %P, the call to %qD requires "
> "default arguments prior to declaration of %qD.", parmnum, fn, fn
On the other hand, This message seems to imply
(1) that "default arguments" are required for calling %qD.
(2) In default argument to parameter %P there is a call to %qD
(3) a requirement for calling %qD is "X", where "X" is "default
arguments prior to declaration of %qD"
(4) there is no connection between "parameter %P" and the default
arguments required.
The repetitions of "default argument" and "fn" make the message even
more confusing and longer than it needs to be.
Anyway, this may be because I am not a native speaker. I don't have
any urgency, so I will simply wait for others to voice their opinion,
in particular, Paolo Carlini and other subscribers to the bug report.
I almost prefer to leave things as they are.
Manuel.