http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57181
Bug #: 57181 Summary: Segfault when dealing with typedef of class stub and nested array Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: blocker Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: andrep...@gmail.com Created attachment 30036 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30036 The file which the segfault occurs. I can not explain better than the file I attached. I cutted it so it shows the segfault with the minimal number of lines, the file has only 14 lines of code. A few remarks, the segmentation fault does not occur: * If the `random_func` is not present. * If the `_externalVec` is not declared. * If the `internalVec` (it is not even used) is not declared. * If `_externalVec` is not attributed. * If `_externalVec` is typed with `Vector3` instead of `Vec3`. * If `internalVec` is typed with `Vector3` instead of `Vec3`.