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]
Other format: [Raw text]

Re: c++/5007: binderfirst<> not constructable if second arg is const reference + ice


Synopsis: binderfirst<> not constructable if second arg is const reference + ice

State-Changed-From-To: open->closed
State-Changed-By: rodrigc
State-Changed-When: Tue Dec 11 16:35:11 2001
State-Changed-Why:
    ICE does not occur with gcc 2.95.3.
    Error occurs:
    /usr/include/g++/stl_function.h: In instantiation of `binder1st<mem_fun1_t<void,unary_functor<const int &,void>,const int &> >':
    ../include/sf_mult/sf_func.h:15:   instantiated from `unary_functor<const int &,void>::func()'
    testun.cpp:13:   instantiated from here
    /usr/include/g++/stl_function.h:198: forming reference to reference type `const int &const'
    /usr/include/g++/stl_function.h:198: method.c:1755: Expect 't', have 'error_mark'
    
    ICE does not occur in gcc 3.0 and gcc 3.1.
    Error occurs instead:
    
    /usr/include/g++/stl_function.h:198: forming reference to reference type `const
       int& const'
    /usr/include/g++/stl_algo.h: In function `_Function for_each(_InputIter,
       _InputIter, _Function) [with _InputIter = int*, _Function =
       binder1st<mem_fun1_t<void, unary_functor<const int&, void>, const int&> >]':
    testun.cpp:13:   instantiated from here
    /usr/include/g++/stl_algo.h:83: no match for call to
       `(binder1st<mem_fun1_t<void, unary_functor<const int&, void>, const int&> >)
       (int&)'

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=5007&database=gcc


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