[LLVMbugs] [Bug 11071] New: compiler error parsing 'aligned' attribute in cast

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Oct 5 14:12:15 PDT 2011


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

           Summary: compiler error parsing 'aligned' attribute in cast
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: pageexec at freemail.hu
                CC: llvmbugs at cs.uiuc.edu
            Blocks: 4068


when compiling linux-3.0.4/crypto/shash.c i get the following error:

crypto/shash.c:68:56: error: 'aligned' attribute ignored when parsing type
        return len + (mask & ~(__alignof__(u8 __attribute__ ((aligned))) - 1));
                                                              ^~~~~~~
1 error generated.

gcc accepts this code but i don't know if it's correct or not.

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