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]

function overloading broken in egcs-980302 ?



Hello there,

Given the following code on machine i486-pc-linux-gnulibc1, with
compiler G++ in egcs-980302, I was surprised to find that it compiled ok.

void
f( int i)
{
};

void
f( int & ri)
{
};

I even tried flags -O -Wall -ansi -pedantic, and the code still compiled !

Regards

David Binderman MSc BSc    +44 1293 534 847       dcb_AVOID_JUNK_MAIL@pncl.co.uk
There is no substitute for skill, taste and experience when programming
 - Dr Stroustrup, inventor of C++



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