This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32237] New: can't compile when a vector is based on a local struct
- From: "danielm77 at spray dot se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jun 2007 18:57:48 -0000
- Subject: [Bug c++/32237] New: can't compile when a vector is based on a local struct
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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