[LLVMbugs] [Bug 18043] constexpr function pointers aren't considered valid template arguments (violates [temp.arg.nontype])

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Nov 25 00:17:51 PST 2013


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

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> ---
For more background, see:

  http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1570

The code is ill-formed because 'fooAddr' does not refer to a function or an
array (it refers to a pointer), and thus you cannot omit the '&'. (More
generally, the intent was that C++11 did not let you do new things here, such
as pushing the address through a constexpr variable.)

-- 
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/20131125/5a976248/attachment.html>


More information about the llvm-bugs mailing list