C++ PATCH for c++/34758 (unclear error message about circular dependency in default arg)
Jason Merrill
jason@redhat.com
Tue Mar 15 17:38:00 GMT 2011
Looking at the previous discussion of this PR, it seemed that the patch
review stalled on the exact wording of the error message. I thought I'd
pick it up again and try my hand at new wording; my take is
"call to %qD uses the default argument for parameter %P, which is not
yet defined"
This patch also sets the default arg context when doing deferred parsing
so that we can detect the circular case specifically and give a
different error in that case.
Tested x86_64-pc-linux-gnu, applying to trunk.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 34758.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110315/cb148b95/attachment.ksh>
More information about the Gcc-patches
mailing list