This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: c++/2189: g++ rejects legal code



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]