This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15339] function call error
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 May 2004 16:24:21 -0000
- Subject: [Bug c++/15339] function call error
- References: <20040507150259.15339.MichaelLi8195@hotmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From gdr at integrable-solutions dot net 2004-05-07 16:24 -------
Subject: Re: 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
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15339