[LLVMbugs] [Bug 13162] New: Multiple Issues with Attribute Alias

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 20 18:33:07 PDT 2012


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

             Bug #: 13162
           Summary: Multiple Issues with Attribute Alias
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: reidw at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8736
  --> http://llvm.org/bugs/attachment.cgi?id=8736
.tar.gz with five test cases and a perl script to compare output

As it stands, clang will accept a number of peculiar constructs related to
attribute alias on functions.
The idea that attribute alias is equivalent to a definition is not reflected in
the code base, so a number of obvious errors are not detected.

This includes cases such as
void foo() __attribute__((alias("bar"),alias("baz")))

I've attached a number of failing cases, along with an example of how defining
a method like

void foo() __attribute__((alias("bar"))){}

isn't detected and produces unpredictable results.

I've attached five such test cases, along with a perl script to compare the
diagnostics of clang and gcc.

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