[LLVMbugs] [Bug 11307] Template parameter candidate incorrectly ignored
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Nov 4 05:46:25 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=11307
Bradley T. Hughes <bradley.hughes at nokia.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Bradley T. Hughes <bradley.hughes at nokia.com> 2011-11-04 07:46:25 CDT ---
After a discussion with my colleagues, I read 14.3.2 of the C++ standard:
A template-argument for a non-type, non-template template-parameter shall be
one of:
- an integral constant-expression of integral or enumeration type; or
- the name of a non-type template-parameter; or
- the address of an object or function with external linkage, including
function templates and function template-ids but excluding non-static class
members, expressed as & id-expression where the & is optional if the name
refers to a function or array, or if the corresponding template-parameter is a
refer- ence; or
- a pointer to member expressed as described in 5.3.1 .
A static function does not have external linkage, and thus isn't a valid
non-type template parameter. Sorry for the noise.
--
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