[LLVMbugs] [Bug 2942] New: FunctionDecls by typedef crash the C++ front-end
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Fri Oct 24 10:05:03 PDT 2008
http://llvm.org/bugs/show_bug.cgi?id=2942
Summary: FunctionDecls by typedef crash the C++ front-end
Product: clang
Version: unspecified
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedbugs at nondot.org
ReportedBy: akyrtzi at gmail.com
CC: llvmbugs at cs.uiuc.edu
e.g:
typedef void fn(int);
fn f;
There are no ParmVarDecls created for the 'f' FunctionDecl, and it crashes the
C++ front-end when trying to use the ParmVarDecls (mostly for handling default
args).
In C there is no problem since ParmVarDecls are used only for definitions,
otherwise FunctionTypeProto is used.
--
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