[llvm-bugs] [Bug 39266] New: typedef types not allowed in vector declaration context

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Oct 12 10:07:00 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=39266

            Bug ID: 39266
           Summary: typedef types not allowed in vector declaration
                    context
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jji at us.ibm.com
                CC: llvm-bugs at lists.llvm.org

$ cat vector_typedef.c
typedef unsigned int ui;
int main(){
__vector unsigned int res;
vector unsigned int res2;
__vector ui bad;
return 0;
}
$ clang -c vector_typedef.c 
vector_typedef.c:5:10: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int]
__vector ui bad;
~~~~~~~~ ^
vector_typedef.c:5:12: error: expected ';' at end of declaration
__vector ui bad;
           ^
           ;
1 warning and 1 error generated.
$ /opt/at11.0/bin/g++ -c vector_typedef.c

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181012/fecb3e42/attachment.html>


More information about the llvm-bugs mailing list