summaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-24 14:55:07 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-24 14:55:07 +0000
commitc091997daaf36f47ab164fff4e4cc5674f3085ba (patch)
treee127f294d5d7102637522a959fbbd8d7687e291b /gcc/cp
parent8757e141171c01bcc25ef86bee5b6eb36685f2a1 (diff)
downloadgcc-c091997daaf36f47ab164fff4e4cc5674f3085ba.tar.gz
tweak comment
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44297 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/tree.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c
index 5ced7ef875a..59c08bcbf13 100644
--- a/gcc/cp/tree.c
+++ b/gcc/cp/tree.c
@@ -80,6 +80,9 @@ lvalue_p_1 (ref, treat_class_rvalues_as_lvalues)
case WITH_CLEANUP_EXPR:
case REALPART_EXPR:
case IMAGPART_EXPR:
+ /* This shouldn't be here, but there are lots of places in the compiler
+ that are sloppy about tacking on NOP_EXPRs to the same type when
+ no actual conversion is happening. */
case NOP_EXPR:
return lvalue_p_1 (TREE_OPERAND (ref, 0),
treat_class_rvalues_as_lvalues);