[llvm-bugs] [Bug 25918] New: Misleading altivec error message when using an unsupported element type in C++

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Dec 21 19:40:01 PST 2015


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

            Bug ID: 25918
           Summary: Misleading altivec error message when using an
                    unsupported element type in C++
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: george.burgess.iv at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

When using an altivec vector with (what I'd assume is) an unsupported element
type, the diagnostic that clang emits is suboptimal:

$ cat baderror.cpp
int foo() { vector bool a; }

$ ~/llvm/llvm-commit/build/release/bin/clang++ -cc1 -faltivec -triple
powerpc-unknown-unknown baderror.cpp
baderror.cpp:1:25: error: C++ requires a type specifier for all declarations
int foo() { vector bool a; }
            ~~~~~~~~~~~ ^
1 error generated.

-- 
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/20151222/ed9fee21/attachment.html>


More information about the llvm-bugs mailing list