[LLVMbugs] [Bug 13159] New: allowing value-initialization of function types

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 20 13:43:10 PDT 2012


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

             Bug #: 13159
           Summary: allowing value-initialization of function types
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: richard-llvm at metafoo.co.uk
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Clang accepts this:

  void f() { typedef int F(); F()(); }

... then dies in IRGen when module verification fails:

  Cannot allocate unsized type
    %tmp = alloca i32 (), align 4
  Broken module found, compilation aborted!

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