The program:
#include <vector>
#include "absParse.hh"

int main( int argc, char *argv[] )
{
  std::vector<int> v;
  v.resize(1);
  return 0;
}

compiles but gets a segv in the resize() call on several different g++
versions. The problem seems to have something to do with declarations of
operator,() in absParse.hh hijacking a loop in the STL where operator,() is
used to do two iterator increments: "for( ; i < last; ++i, ++j ) { ... }"

A full save-temps is attached

Ivan


-- 
           Summary: hidden declarations klobber STL
           Product: gcc
           Version: 3.4.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: igodard at pacbell dot net


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

Reply via email to