problem with tamplates, an example of incorrect c++ code is here:

http://mx1.ru/super_example.cpp

std::set<int, node_less> b;
std::set<int>::iterator i = b.begin();

the second line should is incorrect, but compiles well.


-- 
           Summary: g++ compiles incorrect c++ code
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: asp_ at mail dot ru


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

Reply via email to