[LLVMbugs] [Bug 12556] New: Function attribute 'constructor' priority parameter not respected

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Apr 14 05:10:52 PDT 2012


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

             Bug #: 12556
           Summary: Function attribute 'constructor' priority parameter
                    not respected
           Product: clang
           Version: 3.0
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: holm at liacs.nl
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8389
  --> http://llvm.org/bugs/attachment.cgi?id=8389
Test case

It seems that the constructor attribute's priority parameter is not respected
over different compilation units.

The GCC documentation does not limit the attribute to within a compilation
unit.

I have attached a test case, (compile with clang constructor-test0.c
constructor-test1.c), this will assert, despite it should not.

I havn't tested the destructor attribute, but I would assume there are similar
issues there.

If the functions are moved into a single compilation unit, the program runs
fine without hitting the assertions.

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