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

Benjamin Kosnik bkoz@redhat.com
Mon Mar 5 17:50:00 GMT 2001

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.


More information about the Gcc-bugs mailing list