[LLVMbugs] [Bug 18717] New: 'alias' attribute has incorrect semantics in C mode

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Feb 3 16:06:28 PST 2014


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

            Bug ID: 18717
           Summary: 'alias' attribute has incorrect semantics in C mode
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: david.majnemer at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

gcc, icc and clang 3.3 all support the following, making this bug a regression:

struct x86_cpu_id {};
static const struct x86_cpu_id svm_cpu_id[] = {};
extern const struct x86cpu_device_id __mod_x86cpu_device_table __attribute__
((alias("svm_cpu_id")));

we error with "variable has incomplete type 'const struct x86cpu_device_id'"

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140204/409574ee/attachment.html>


More information about the llvm-bugs mailing list