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]

[Bug c++/32237] New: can't compile when a vector is based on a local struct


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


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