[LLVMbugs] [Bug 11799] New: pretty-printing produces wrong lvalue cast
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Jan 18 23:58:39 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=11799
Bug #: 11799
Summary: pretty-printing produces wrong lvalue cast
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:
void fun(int& x);
int main() {
unsigned int y = 0;
fun((int&)y);
}
Produces following fun call - fun((int)y)
Printed code does not compile.
--
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