[LLVMbugs] [Bug 24032] New: variadic-template-function taking variadic-function-pointer as argument fails if argument's type is typedef'd via using
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Jul 4 20:26:57 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24032
Bug ID: 24032
Summary: variadic-template-function taking
variadic-function-pointer as argument fails if
argument's type is typedef'd via using
Product: clang
Version: trunk
Hardware: PC
URL: http://stackoverflow.com/questions/31225888/pre-typede
fing-a-variadic-function-pointer-argument
OS: Linux
Status: NEW
Keywords: compile-fail
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: xaxazak at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 14552
--> https://llvm.org/bugs/attachment.cgi?id=14552&action=edit
source that should compile, but doesn't
Create a variadic-template-function that takes a variadic-function-pointer as
its argument. This works as intended, and correctly accepts candidate functions
as arguments.
Create a typedef (via "using") for a variadic-function-pointer. This works, and
variables of this type can be correctly assigned to candidate functions.
Try to replace the variadic-template-function's argument type with this new
typedef. This should compile (at least, GCC accepts it), but doesn't.
This is somehow related to template parameter-deduction, even though explicitly
specifying the parameters still causes a "deduction" failure.
There's some more discussion on the stackoverflow topic link:
http://stackoverflow.com/questions/31225888/pre-typedefing-a-variadic-function-pointer-argument
--
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/20150705/08021ed2/attachment.html>
More information about the llvm-bugs
mailing list