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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs