[Bug c++/35106] Unconsistent handling of overloaded vs default arguments to functions

vonbrand at inf dot utfsm dot cl gcc-bugzilla@gcc.gnu.org
Wed Feb 6 16:23:00 GMT 2008



------- Comment #2 from vonbrand at inf dot utfsm dot cl  2008-02-06 16:22 -------
(In reply to comment #1)
> What are you trying to say?

If I declare:

  void f();
  void f(int);

or

  void f(int i = 100);

should behave exactly the same way. If not, what is the point of offering
default arguments as a shortcut to a (very common) type of overloading?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35106



More information about the Gcc-bugs mailing list