[llvm-bugs] [Bug 26601] New: Error for "return type 'V' is an abstract class" missing for methods of a struct
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Feb 12 18:10:56 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=26601
Bug ID: 26601
Summary: Error for "return type 'V' is an abstract class"
missing for methods of a struct
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: llvm-bugs at justinbogner.com
CC: dexonsmith at apple.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
Classification: Unclassified
The following program does not emit a diagnostic:
~~
struct V {
virtual void foo() = 0;
};
struct S {
V bar();
};
void test() { S().bar().foo(); }
~~
Presumably, it should emit an error that the return type of bar(), 'V', is an
abstract class.
--
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/20160213/b4688ced/attachment-0001.html>
More information about the llvm-bugs
mailing list