aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2004-06-28 02:11:55 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-06-27 19:11:55 -0700
commite3790655bc1768006612cdc21258e4f2fc2df404 (patch)
tree384de4546a0123ca894a6141d412dbbde27f551d /gcc/c-common.c
parent3ff0c9ed199501eb41de66f59b32252b42d9333a (diff)
downloadgcc-e3790655bc1768006612cdc21258e4f2fc2df404.zip
gcc-e3790655bc1768006612cdc21258e4f2fc2df404.tar.gz
gcc-e3790655bc1768006612cdc21258e4f2fc2df404.tar.bz2
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index f48ac09..349df5b 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",