#1600 VTK writer returning reference to temporary
Metadata
Property | Value |
---|---|
Reported by | Marco Agnese (m.agnese13@imperial.ac.uk) |
Reported at | Mar 16, 2015 11:26 |
Type | Bug Report |
Version | Git (pre2.4) [autotools] |
Operating System | Unspecified / All |
Last edited by | Marco Agnese (m.agnese13@imperial.ac.uk) |
Last edited at | Mar 17, 2015 10:56 |
Closed by | Marco Agnese (m.agnese13@imperial.ac.uk) |
Closed at | Mar 17, 2015 10:56 |
Closed in version | 2.4 |
Resolution | Fixed |
Comment |
Description
This may lead to a segmentation fault
/usr/local_machine/dune-trunk/dune-grid/dune/grid/io/file/vtk/vtkwriter.hh:385:17: warning: returning reference to temporary [-Wreturn-local-addr] return *git;
Cheers, Marco