This is the mail archive of the gcc-patches@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] |
Other format: | [Raw text] |
This patch extends upon http://gcc.gnu.org/PR5520 and adds checking for while and for statements. This is fairly safe, as we can come very close to only triggering on clearly bad forms. The false positives are further reduced when mapped locations are in use.
Ok?
2007-04-25 Mike Stump <mrs@apple.com>
* parser.c (check_empty_body): Add. (cp_parser_iteration_statement): Add call to check_empty_body.
* g++.old-deja/g++.mike/empty.C: Add.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |