[LLVMbugs] [Bug 10735] clang uses the regparm attribute when deciding templace specializations

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Aug 24 14:18:09 PDT 2011


Douglas Gregor <dgregor at apple.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #3 from Douglas Gregor <dgregor at apple.com> 2011-08-24 16:18:08 CDT ---
Clang is behaving correctly here. A regparm-attributed member function pointer
type is distinct from a non-regparm-attributed member function pointer type, so
they'll have different template specializations. GCC's behavior appears to be
inconsistent here, because the types are considered equivalent for the purposes
of matching template arguments, so the regparm attribute associated with the
first instantiation is the one that "sticks", even if subsequent instantiations
don't have the regparm attribute.

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