-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR c++/85093 - too many template args with pack expansion.
* pt.c (coerce_template_parms): Keep pack expansion args that will need to be empty. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@258964 138bc75d-0d04-0410-961f-82ee72b054a4
- Loading branch information
jason
committed
Mar 29, 2018
1 parent
7588bde
commit 9830757
Showing
3 changed files
with
35 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
2018-03-29 Jason Merrill <[email protected]> | ||
|
||
PR c++/85093 - too many template args with pack expansion. | ||
* pt.c (coerce_template_parms): Keep pack expansion args that will | ||
need to be empty. | ||
|
||
2018-03-29 Jason Merrill <[email protected]> | ||
|
||
* pt.c (build_non_dependent_expr): Propagate expr location. | ||
|
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,13 @@ | ||
// PR c++/85093 | ||
// { dg-do compile { target c++11 } } | ||
|
||
template<class V> class A {}; | ||
|
||
template<class V, class... G> class B { | ||
typedef A<V,G...> AB; // { dg-error "arguments" } | ||
AB ab; | ||
}; | ||
|
||
int main() { | ||
B<int,double> b; | ||
} |