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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to