http://llvm.org/bugs/show_bug.cgi?id=2333

           Summary: clang codegen crash with function declared without a
                    prototype then defined
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: LLVM Codegen
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [email protected]


Testcase:
int a();
int b()
{
  a(1);
}
int a(int b)
{
  return b;
}

crashes with clang -emit-llvm.

This in CodeGenFunction::GenerateCode because it adds a body to a function
declaration with an incomplete argument list.


-- 
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