[LLVMbugs] [Bug 15423] New: type overloading does not strip function attributes

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Mar 2 13:47:08 PST 2013


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

            Bug ID: 15423
           Summary: type overloading does not strip function attributes
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: compnerd at compnerd.org
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10127
  --> http://llvm.org/bugs/attachment.cgi?id=10127&action=edit
instantiation.cc

When performing template type instantations, function attributes need to be
stripped to allow for proper template instantation.  The following example
helps indicate this.

In particular, the make_thunk template specialisation fails as there are two
template specialisations available (one for the const and one for the non-const
version).  The __attribute__ (( noreturn )) is considered part of the templated
type, which does not have a template specialisation, and so the template
instantiation fails.

-- 
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/20130302/2a258f09/attachment.html>


More information about the llvm-bugs mailing list