From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27271 invoked by alias); 26 Sep 2011 15:16:54 -0000 Received: (qmail 27258 invoked by uid 22791); 26 Sep 2011 15:16:52 -0000 X-SWARE-Spam-Status: No, hits=-0.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-gx0-f175.google.com (HELO mail-gx0-f175.google.com) (209.85.161.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 26 Sep 2011 15:16:38 +0000 Received: by gxk4 with SMTP id 4so4844370gxk.20 for ; Mon, 26 Sep 2011 08:16:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.220.216 with SMTP id o66mr7418221wep.52.1317050126890; Mon, 26 Sep 2011 08:15:26 -0700 (PDT) Received: by 10.216.5.65 with HTTP; Mon, 26 Sep 2011 08:15:26 -0700 (PDT) Date: Mon, 26 Sep 2011 16:23:00 -0000 Message-ID: Subject: misleading description in vec.h? From: Liang Wang To: gcc@gcc.gnu.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2011-09/txt/msg00325.txt.bz2 Hi, Here is comment from line 36, gcc/vec.h Both the structure object and pointer variants pass pointers to objects around -- in the former case the pointers are stored into the vector and in the latter case the pointers are dereferenced and the objects copied into the vector. But by reading implementation, it seems that this description is reverse. I think that it should be something like in the *latter* case the pointers are stored into the vector and in the *former* case the pointers are dereferenced and the objects copied into the vector. That is, the pointers in structure object variant are dereferenced and the objects copied into the vector. Am I missing something? Thanks, Liang.