[LLVMbugs] [Bug 14154] Constant expression with function pointer cannot be used as non-type template argument
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Jan 13 18:03:09 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=14154
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |richard-llvm at metafoo.co.uk
Resolution| |INVALID
--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> 2013-01-13 20:03:09 CST ---
(In reply to comment #0)
> According to 14.3.2p1, "a template-argument for a non-type, non-template
> template-parameter shall be one of: [...] a constant expression (5.19) that
> designates the address of an object with static storage duration and external
> or internal linkage or a function with external or internal linkage".
See the end of that bullet:
"expressed (ignoring parentheses) as &id-expression, except that the & may be
omitted if the name refers to a function or array and shall be omitted if the
corresponding template-parameter is a reference"
--
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