diff options
author | Andrew Pinski <pinskia@physics.uc.edu> | 2004-06-28 02:11:55 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2004-06-27 19:11:55 -0700 |
commit | e3790655bc1768006612cdc21258e4f2fc2df404 (patch) | |
tree | 384de4546a0123ca894a6141d412dbbde27f551d /gcc/c-common.c | |
parent | 3ff0c9ed199501eb41de66f59b32252b42d9333a (diff) | |
download | gcc-e3790655bc1768006612cdc21258e4f2fc2df404.tar.gz |
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
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index f48ac09fbdd..349df5b73c6 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -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", |