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

            Bug ID: 33163
           Summary: Reserved keyword vector can not be recognized in type
                    identifier when a same name occur in variable or
                    function
           Product: clang
           Version: trunk
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

int vector(){return 5;}

int main(){
vector signed int a = {1,2,3,4};
return 0;
}

clang++ a.C -maltivec
a.C:4:7: error: expected ';' after expression
vector signed int a = {1,2,3,4};
      ^
      ;
a.C:4:19: error: excess elements in scalar initializer
vector signed int a = {1,2,3,4};
                  ^     ~~~~~~~
a.C:4:1: warning: expression result unused [-Wunused-value]
vector signed int a = {1,2,3,4};
^~~~~~
1 warning and 2 errors generated.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to