This is the mail archive of the gcc@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]

warning not issued



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


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