[LLVMbugs] [Bug 17786] Incorrect mangling of member function with __restrict qualifier

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Nov 3 01:03:02 PDT 2013


David Majnemer <david.majnemer at gmail.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |david.majnemer at gmail.com
         Resolution|---                         |INVALID

--- Comment #1 from David Majnemer <david.majnemer at gmail.com> ---
clang accepts the following definition:
struct Foo {
    void bar() __restrict { }
    void bar() { }

This means that, counter to icc and gcc, clang considers these to be overloads.
For the exact reason that you stated, clang must mangle the __restrict
attribute into the external name.

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/20131103/a5aa95d4/attachment.html>

More information about the llvm-bugs mailing list