re PR c++/16205 (ICE with -Wall on no-throw specifier)
2004-06-27 Andrew Pinski <pinskia@physics.uc.edu> PR c++/16205 * c-common.c (warn_for_collisions_1): Warn for only decls which have a name. From-SVN: r83759
This commit is contained in:
parent
3ff0c9ed19
commit
e3790655bc
2 changed files with 6 additions and 1 deletions
|
@ -1,5 +1,9 @@
|
|||
2004-06-27 Andrew Pinski <pinskia@physics.uc.edu>
|
||||
|
||||
PR c++/16205
|
||||
* c-common.c (warn_for_collisions_1): Warn for only decls which
|
||||
have a name.
|
||||
|
||||
PR c++/15145
|
||||
* c.opt (Wsequence-point): Enable for C++ and ObjC++.
|
||||
|
||||
|
|
|
@ -1122,7 +1122,8 @@ warn_for_collisions_1 (tree written, tree writer, struct tlist *list,
|
|||
{
|
||||
if (list->expr == written
|
||||
&& list->writer != writer
|
||||
&& (! only_writes || list->writer))
|
||||
&& (! only_writes || list->writer)
|
||||
&& DECL_NAME (list->expr))
|
||||
{
|
||||
warned_ids = new_tlist (warned_ids, written, NULL_TREE);
|
||||
warning ("operation on `%s' may be undefined",
|
||||
|
|
Loading…
Add table
Reference in a new issue