more on duplicate decls
Giovanni Bajo
rasky@develer.com
Wed Jul 13 19:00:00 GMT 2005
Kenneth Zadeck <zadeck@naturalbridge.com> wrote:
> Are you saying that if I wait til the front end is finished that I do
> not have to worry about the default args problem you mention above?
Yes. The middle-end does not know anything about default arguments: they are
used only internally by the C++ frontend. When the trees enter the
middle-end, the FUNCTION_DECLs do not need the default arguments, the
CALL_EXPR are filled correctly, and the programmer errors have been already
reported.
> Should I fix it this simple way or should I let a c++ front end person
> fix it as the decls are created?
I believe the simple way is faster for you to continue with you work. The
proper fix does not look easy at all.
--
Giovanni Bajo
More information about the Gcc
mailing list