[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


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:


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