[LLVMbugs] [Bug 11805] New: pretty-printing produces wrong definition of anonymous structure variable
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jan 19 15:30:38 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=11805
Bug #: 11805
Summary: pretty-printing produces wrong definition of anonymous
structure variable
Product: clang
Version: 3.0
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: mm.5p4mbox at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Running "clang -cc1 -ast-print file.cpp" on following source:
int main()
{
static const struct {
int x;
} t = { 1 };
}
Produces wrong code that doesn't compile. It produces following:
int main() {
struct {
int x;
} static const struct t = { 1 };
}
There shouldn't be "struct" keyword before "t" variable name.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list