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

            Bug ID: 32099
           Summary: Arrays of abstract types are incorrectly accepted for
                    class templates.
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

// Reproducer: clang++ -std=c++14 test.cpp
                 struct A { virtual void f() = 0; };
template <class> struct B { virtual void f() = 0; };

auto a = static_cast<A(*)[1]>(nullptr); // correctly rejected.
auto b = static_cast<B<int>(*)[1]>(nullptr); // incorrectly accepted.

-- 
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