[LLVMbugs] [Bug 7339] New: Function attribute position

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 9 17:52:17 PDT 2010


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

           Summary: Function attribute position
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: John.Thompson.JTSoftware at gmail.com
                CC: llvmbugs at cs.uiuc.edu


file.cpp:70474:13: warning: attribute declaration must precede definition
extern bool func(const void *pPtr) __attribute__((__const__));

gcc seems to allow attributes at the end of the function declaration:
            ^
http://gcc.gnu.org/onlinedocs/gcc-4.5.0/gcc/Function-Attributes.html#Function-Attributes

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