[LLVMbugs] [Bug 3575] New: warn when adding attributes following definition

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Feb 13 12:35:08 PST 2009


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

           Summary: warn when adding attributes following definition
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: daniel at zuster.org
                CC: llvmbugs at cs.uiuc.edu


clang should warn about the following code:
--
static void A() {

}
static void A() __attribute__((constructor));
--

The attribute is ignored because it follows the definition. This is a more
systemic problem than just attribute constructor.


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