I can't compile this code:

void f()
{
    struct a { int i; };
    std::vector<a> v;
}

Moving the struct declaration out of the function solves the problem.


-- 
           Summary: can't compile when a vector is based on a local struct
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danielm77 at spray dot se


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

Reply via email to