[LLVMbugs] [Bug 20628] New: virt-specifiers are allowed in friend declarations

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Aug 11 16:21:40 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20628

            Bug ID: 20628
           Summary: virt-specifiers are allowed in friend declarations
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ville.voutilainen at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Simple test snippets:

struct X {friend void f() final;};
struct X {friend void f() override;};

Tested with clang 3.5, -Wall -std=c++1y -stdlib=libc++ -pedantic-errors -ftrapv
-Wfatal-errors -Wall -Wextra -Wno-empty-body -Wno-missing-field-initializers
-Wwrite-strings -Wno-deprecated -Wno-unused -Wno-non-virtual-dtor
-Wno-variadic-macros -Wno-mismatched-tags -Wno-unused-parameter

No diagnostic is issued.

-- 
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/20140811/061a1d94/attachment.html>


More information about the llvm-bugs mailing list