[llvm-bugs] [Bug 33312] New: Methods inherited in nested class generate spurious override error
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Jun 5 07:54:43 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33312
Bug ID: 33312
Summary: Methods inherited in nested class generate spurious
override error
Product: clang
Version: 4.0
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: matt at ookypooky.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
Created attachment 18574
--> https://bugs.llvm.org/attachment.cgi?id=18574&action=edit
Minimal example demonstrating the problem
The attached code fails to compile (with "clang++ -std=c++11") with the
following error:
<source>:14:18: error: 'method' marked 'override' but does not override any
member functions
virtual void method () override {}
^
This fails with every version of clang from 3.1 onwards, but works with all
(C++11 supporting) versions of gcc; see https://godbolt.org/g/eI7da0 .
Clang-3.0 works ok.
--
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/20170605/294f5973/attachment.html>
More information about the llvm-bugs
mailing list