[llvm-bugs] [Bug 46580] New: No diagnostic on (AltiVec) `vector double _Complex`

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jul 3 13:22:27 PDT 2020


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

            Bug ID: 46580
           Summary: No diagnostic on (AltiVec) `vector double _Complex`
           Product: clang
           Version: trunk
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: hstong at ca.ibm.com
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

The code below indicates that Clang accepts `vector float _Complex` as a
synonym for `float _Complex`. I do not believe that is expected.

### SOURCE (<stdin>):
extern vector float _Complex x;
float _Complex x;


### COMPILER INVOCATION:
clang -cc1 -triple powerpc64le-unknown-linux-gnu -target-feature +altivec
-fsyntax-only -Wall -Wextra -xc -


### ACTUAL OUTPUT:
(rc=0)


### EXPECTED OUTPUT:
(error message)


### COMPILER VERSION INFO (clang -v):
clang version 11.0.0 (https://github.com/llvm/llvm-project.git
e98030a55f9dd19aed4b763cc1eced54ae7e550e)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/wandbox/clang-head/bin
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.5.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.5.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.5.0
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.5.0
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64

-- 
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/20200703/e7576e94/attachment.html>


More information about the llvm-bugs mailing list