This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/2189: g++ rejects legal code
- To: gcc-bugs at gcc dot gnu dot org, mayer at tux dot org, gcc-gnats at gcc dot gnu dot org
- Subject: Re: c++/2189: g++ rejects legal code
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Mon, 5 Mar 2001 17:50:18 -0800
For maximum clarity, default arguments always go with the
declaration, not the definition. See 8.3.6 Default arguments.
Sadly though, your code is actually legal, just a bit confusing to
read. This is a bug.
-benjamin