[llvm-bugs] [Bug 35759] New: No diagnostic for enum name and an identical function name
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Dec 27 07:00:36 PST 2017
https://bugs.llvm.org/show_bug.cgi?id=35759
Bug ID: 35759
Summary: No diagnostic for enum name and an identical function
name
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: fraser.ross8 at btinternet.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
class C {
public:
unsigned char CType() const {
return 0;
};
enum
CType {
r= 1,
z= 2,
n= 0,
};
};
I use C++ Builder 10.2.1. There should be diagnostic messages such as
"multiple declaration" or "earlier declaration" as there is with earlier
versions of C++ Builder.
--
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/20171227/407a4eb2/attachment.html>
More information about the llvm-bugs
mailing list