This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/28921] New: vector of a pointer type does not give a warning or error that we are ignoring vector


Testcase:
typedef char *cptr;

char *a;

__attribute__ ((vector_size(16))) cptr t;

int f(void)
{

__attribute__ ((vector_size(16))) int t1 =
   (__attribute__ ((vector_size(16))) int )t;
}

We get an error about converting t to a vector int but t looks to me a vector
of a char pointer.  This happens with both the C and C++ front-ends.


-- 
           Summary: vector of a pointer type does not give a warning or
                    error that we are ignoring vector
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28921


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]