forked from chapuni/clang
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A non-explicit constructor template with a second parameter that is a
parameter pack is a converting constructor. Fixes PR13003. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158040 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
1 parent
7453a72
commit 113c444
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// RUN: %clang_cc1 -std=c++11 %s -verify | ||
|
||
namespace PR13003 { | ||
struct void_type | ||
{ | ||
template <typename Arg0, typename... Args> | ||
void_type(Arg0&&, Args&&...) { } | ||
}; | ||
|
||
struct void_type2 | ||
{ | ||
template <typename... Args> | ||
void_type2(Args&&...) { } | ||
}; | ||
|
||
struct atom { }; | ||
|
||
void_type v1 = atom(); | ||
void_type2 v2 = atom(); | ||
} | ||
|