This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [Bug c++/15339] function call error
"bangerth at dealii dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| Actually, that was easy. 8.3.6/4 specificly says
| For non-template functions, default arguments can be added in later
| declarations.
|
| So the code is invalid.
Yes, you're right. But we should be diagnosing the declaration
in the first place -- which we fail. So there is an issue here, but
not that one the submitter thought about.
-- Gaby