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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [email protected]


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

Reply via email to