[LLVMbugs] [Bug 16951] New: Lack of fixit when enum type name is needlessly given
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Aug 20 22:31:26 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16951
Bug ID: 16951
Summary: Lack of fixit when enum type name is needlessly given
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: david.majnemer at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
consider:
namespace dwarf {
enum llvm_dwarf_constants {
DW_PUBTYPES_VERSION
};
}
int x = dwarf::llvm_dwarf_constants::DW_PUBTYPES_VERSION;
we give:
testcase.cpp:7:16: error: expected a class or namespace
int x = dwarf::llvm_dwarf_constants::DW_PUBTYPES_VERSION;
~~~~~~~^
1 error generated.
The problem is that the enum type name doesn't need to be there and should be
removed. A fix-it should be given in such cases.
--
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/20130821/f55bf796/attachment.html>
More information about the llvm-bugs
mailing list