Problems with GCC 4.3 C++
Horst H. von Brand
vonbrand at inf.utfsm.cl
Wed Feb 6 02:20:01 UTC 2008
A non-text attachment was scrubbed...
Name: tst.cc
Type: text/x-c++
Size: 159 bytes
Desc: Test file
Url : http://lists.fedoraproject.org/pipermail/test/attachments/20080205/c6ec34ba/attachment.bin
-------------- next part --------------
Note that the f() function can be called with one argument, and that is
what the template use tries to do; g++ complains:
$ g++ -O2 -c tst.cc
tst.cc: In function ?void ff(int, T) [with T = void (*)(int, int)]?:
tst.cc:13: instantiated from here
tst.cc:4: error: too few arguments to function
I'm no C++ expert at all, so both the "how it used to work" and the current
behavior sound reasonable. Can somebody shed some light? Should this be
documented as a GCC change, or is it a bug?
gcc-c++-4.3.0-0.7.i386
Thanks!
--
Dr. Horst H. von Brand User #22616 counter.li.org
Departamento de Informatica Fono: +56 32 2654431
Universidad Tecnica Federico Santa Maria +56 32 2654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 2797513
More information about the test
mailing list