This is the mail archive of the gcc@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] |
Other format: | [Raw text] |
Before, I declare a spurious bug in buzilla, can someone enlightens me about what is wrong with the following code... (I'm sure I overlooked some C++ rule). When compiled without flgs or with -DTEST1 or -DTEST2, it fails to recognize std::endl as a matching parameter for respectively const T& t, T& (*pf)(T&), or std::basic_ostream<T>& (*pf)(std::basic_ostream<T>&). Only, the non-template overload (-DTEST3) works (and this whatever the gcc release between 3.2 and 3.4 from two weeks ago. A quick view of the standard 14.8.2, 14.8.3 does not answer to my problem but it was a quick check. The only really relevant thing I found is 14.8.2.1.2 which seem to say that function parameters should be no problem. Is this a problem with template function used as arguments for other template functions. Thanks. Theo. -------------------------------------------------------------------- Theodore Papadopoulo Email: Theodore.Papadopoulo@sophia.inria.fr Tel: (33) 04 92 38 76 01 --------------------------------------------------------------------
Attachment:
test.C
Description: test.C
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |