From: Andrew Pinski Date: Mon, 28 Jun 2004 02:11:55 +0000 (+0000) Subject: re PR c++/16205 (ICE with -Wall on no-throw specifier) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e3790655bc1768006612cdc21258e4f2fc2df404;p=gcc.git re PR c++/16205 (ICE with -Wall on no-throw specifier) 2004-06-27 Andrew Pinski PR c++/16205 * c-common.c (warn_for_collisions_1): Warn for only decls which have a name. From-SVN: r83759 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2e6fa9406a6..e8dd3a2ff65 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2004-06-27 Andrew Pinski + 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++. 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",