warning not issued

Tudor Hulubei tudor@cs.unh.edu
Wed Oct 21 13:42:00 GMT 1998


Hi,

The following code does not warn you that the initialization of `t' is
skipped.  The result is a segfault when exiting main.  I'm using
egcs-1.1b on RedHat 5.1.

#include <vector>

int
main(int argc)
{
    goto done;
    vector<int> t;
  done:;
}

Regards,
Tudor



More information about the Gcc mailing list