[LLVMbugs] [Bug 19819] New: Abstract class in function return type

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed May 21 11:53:16 PDT 2014


            Bug ID: 19819
           Summary: Abstract class in function return type
           Product: clang
           Version: 3.4
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: hui.li at me.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

It appears clang has a bug that was once in gcc but has been fixed,

clang compiles the following invalid code (taken from the gcc bug report),
which it shouldn't.

template<typename T>
struct S{};

struct A
  virtual void f() = 0;

int main()
  S<A(int)> s;

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/20140521/6de1e593/attachment.html>

More information about the llvm-bugs mailing list