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