* [Bug c++/53862] [GCC 4.7.1] sorry, unimplemented: use of 'type_pack_expansion' in template
2012-07-05 8:47 [Bug c++/53862] New: [GCC 4.7.1] sorry, unimplemented: use of 'type_pack_expansion' in template likan_999.student at sina dot com
@ 2012-07-05 8:52 ` likan_999.student at sina dot com
2012-07-05 8:57 ` [Bug c++/53862] [C++11] " pinskia at gcc dot gnu.org
` (13 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: likan_999.student at sina dot com @ 2012-07-05 8:52 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53862
Ke Liu <likan_999.student at sina dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|major |critical
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/53862] [C++11] sorry, unimplemented: use of 'type_pack_expansion' in template
2012-07-05 8:47 [Bug c++/53862] New: [GCC 4.7.1] sorry, unimplemented: use of 'type_pack_expansion' in template likan_999.student at sina dot com
2012-07-05 8:52 ` [Bug c++/53862] " likan_999.student at sina dot com
@ 2012-07-05 8:57 ` pinskia at gcc dot gnu.org
2012-07-05 9:09 ` likan_999.student at sina dot com
` (12 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-07-05 8:57 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53862
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[GCC 4.7.1] sorry, |[C++11] sorry,
|unimplemented: use of |unimplemented: use of
|'type_pack_expansion' in |'type_pack_expansion' in
|template |template
Severity|critical |normal
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/53862] [C++11] sorry, unimplemented: use of 'type_pack_expansion' in template
2012-07-05 8:47 [Bug c++/53862] New: [GCC 4.7.1] sorry, unimplemented: use of 'type_pack_expansion' in template likan_999.student at sina dot com
2012-07-05 8:52 ` [Bug c++/53862] " likan_999.student at sina dot com
2012-07-05 8:57 ` [Bug c++/53862] [C++11] " pinskia at gcc dot gnu.org
@ 2012-07-05 9:09 ` likan_999.student at sina dot com
2012-07-05 9:10 ` likan_999.student at sina dot com
` (11 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: likan_999.student at sina dot com @ 2012-07-05 9:09 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53862
--- Comment #1 from Ke Liu <likan_999.student at sina dot com> 2012-07-05 09:08:44 UTC ---
BTW: this piece of code can be compiled successfully by clang++
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/53862] [C++11] sorry, unimplemented: use of 'type_pack_expansion' in template
2012-07-05 8:47 [Bug c++/53862] New: [GCC 4.7.1] sorry, unimplemented: use of 'type_pack_expansion' in template likan_999.student at sina dot com
` (2 preceding siblings ...)
2012-07-05 9:09 ` likan_999.student at sina dot com
@ 2012-07-05 9:10 ` likan_999.student at sina dot com
2012-07-05 9:47 ` daniel.kruegler at googlemail dot com
` (10 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: likan_999.student at sina dot com @ 2012-07-05 9:10 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53862
--- Comment #2 from Ke Liu <likan_999.student at sina dot com> 2012-07-05 09:10:04 UTC ---
Any work around is welcome.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/53862] [C++11] sorry, unimplemented: use of 'type_pack_expansion' in template
2012-07-05 8:47 [Bug c++/53862] New: [GCC 4.7.1] sorry, unimplemented: use of 'type_pack_expansion' in template likan_999.student at sina dot com
` (3 preceding siblings ...)
2012-07-05 9:10 ` likan_999.student at sina dot com
@ 2012-07-05 9:47 ` daniel.kruegler at googlemail dot com
2012-07-05 9:48 ` redi at gcc dot gnu.org
` (9 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: daniel.kruegler at googlemail dot com @ 2012-07-05 9:47 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53862
Daniel Krügler <daniel.kruegler at googlemail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |daniel.kruegler at
| |googlemail dot com
--- Comment #3 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2012-07-05 09:47:01 UTC ---
The problem also exists for gcc 4.8.0 20120624 (experimental)
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/53862] [C++11] sorry, unimplemented: use of 'type_pack_expansion' in template
2012-07-05 8:47 [Bug c++/53862] New: [GCC 4.7.1] sorry, unimplemented: use of 'type_pack_expansion' in template likan_999.student at sina dot com
` (4 preceding siblings ...)
2012-07-05 9:47 ` daniel.kruegler at googlemail dot com
@ 2012-07-05 9:48 ` redi at gcc dot gnu.org
2012-07-06 13:47 ` paolo.carlini at oracle dot com
` (8 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: redi at gcc dot gnu.org @ 2012-07-05 9:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53862
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-07-05
Ever Confirmed|0 |1
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-07-05 09:48:33 UTC ---
It compiles OK if you just change f(Args...) to f(Args&&...)
Reduced to remove header (and C++11) dependencies:
typedef unsigned long size_t;
template<typename> struct is_scalar { static const bool value = true; };
template<bool, typename T> struct enable_if { typedef T type; };
template <size_t N, typename... Args>
void f(Args...) {}
template <size_t N, typename T, typename... Args>
typename enable_if<is_scalar<T>::value, void>::type f(T, Args...) {}
int main() {
f<1>(1);
}
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/53862] [C++11] sorry, unimplemented: use of 'type_pack_expansion' in template
2012-07-05 8:47 [Bug c++/53862] New: [GCC 4.7.1] sorry, unimplemented: use of 'type_pack_expansion' in template likan_999.student at sina dot com
` (5 preceding siblings ...)
2012-07-05 9:48 ` redi at gcc dot gnu.org
@ 2012-07-06 13:47 ` paolo.carlini at oracle dot com
2012-07-06 13:49 ` paolo.carlini at oracle dot com
` (7 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-07-06 13:47 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53862
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |frankhb1989 at gmail dot
| |com
--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-07-06 13:46:40 UTC ---
*** Bug 53873 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/53862] [C++11] sorry, unimplemented: use of 'type_pack_expansion' in template
2012-07-05 8:47 [Bug c++/53862] New: [GCC 4.7.1] sorry, unimplemented: use of 'type_pack_expansion' in template likan_999.student at sina dot com
` (6 preceding siblings ...)
2012-07-06 13:47 ` paolo.carlini at oracle dot com
@ 2012-07-06 13:49 ` paolo.carlini at oracle dot com
2012-07-06 15:45 ` jason at gcc dot gnu.org
` (6 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-07-06 13:49 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53862
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org
--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-07-06 13:49:30 UTC ---
Let's add Jason in CC.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/53862] [C++11] sorry, unimplemented: use of 'type_pack_expansion' in template
2012-07-05 8:47 [Bug c++/53862] New: [GCC 4.7.1] sorry, unimplemented: use of 'type_pack_expansion' in template likan_999.student at sina dot com
` (7 preceding siblings ...)
2012-07-06 13:49 ` paolo.carlini at oracle dot com
@ 2012-07-06 15:45 ` jason at gcc dot gnu.org
2012-07-06 15:46 ` [Bug c++/53862] [4.6/4.7 regression] " jason at gcc dot gnu.org
` (5 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: jason at gcc dot gnu.org @ 2012-07-06 15:45 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53862
--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> 2012-07-06 15:45:15 UTC ---
Author: jason
Date: Fri Jul 6 15:45:10 2012
New Revision: 189334
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189334
Log:
PR c++/53862
* pt.c (tsubst_arg_types): Add "end" parameter.
(check_undeduced_parms): Use it.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/variadic134.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/53862] [4.6/4.7 regression] [C++11] sorry, unimplemented: use of 'type_pack_expansion' in template
2012-07-05 8:47 [Bug c++/53862] New: [GCC 4.7.1] sorry, unimplemented: use of 'type_pack_expansion' in template likan_999.student at sina dot com
` (8 preceding siblings ...)
2012-07-06 15:45 ` jason at gcc dot gnu.org
@ 2012-07-06 15:46 ` jason at gcc dot gnu.org
2012-07-06 15:46 ` jason at gcc dot gnu.org
` (4 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: jason at gcc dot gnu.org @ 2012-07-06 15:46 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53862
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
Status|NEW |ASSIGNED
Target Milestone|--- |4.6.4
Summary|[C++11] sorry, |[4.6/4.7 regression]
|unimplemented: use of |[C++11] sorry,
|'type_pack_expansion' in |unimplemented: use of
|template |'type_pack_expansion' in
| |template
--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> 2012-07-06 15:46:12 UTC ---
This is a regression from 4.4. Fixed on trunk.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/53862] [4.6/4.7 regression] [C++11] sorry, unimplemented: use of 'type_pack_expansion' in template
2012-07-05 8:47 [Bug c++/53862] New: [GCC 4.7.1] sorry, unimplemented: use of 'type_pack_expansion' in template likan_999.student at sina dot com
` (9 preceding siblings ...)
2012-07-06 15:46 ` [Bug c++/53862] [4.6/4.7 regression] " jason at gcc dot gnu.org
@ 2012-07-06 15:46 ` jason at gcc dot gnu.org
2012-09-07 9:37 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: jason at gcc dot gnu.org @ 2012-07-06 15:46 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53862
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
Status|NEW |ASSIGNED
Target Milestone|--- |4.6.4
Summary|[C++11] sorry, |[4.6/4.7 regression]
|unimplemented: use of |[C++11] sorry,
|'type_pack_expansion' in |unimplemented: use of
|template |'type_pack_expansion' in
| |template
--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> 2012-07-06 15:45:15 UTC ---
Author: jason
Date: Fri Jul 6 15:45:10 2012
New Revision: 189334
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189334
Log:
PR c++/53862
* pt.c (tsubst_arg_types): Add "end" parameter.
(check_undeduced_parms): Use it.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/variadic134.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> 2012-07-06 15:46:12 UTC ---
This is a regression from 4.4. Fixed on trunk.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/53862] [4.6/4.7 regression] [C++11] sorry, unimplemented: use of 'type_pack_expansion' in template
2012-07-05 8:47 [Bug c++/53862] New: [GCC 4.7.1] sorry, unimplemented: use of 'type_pack_expansion' in template likan_999.student at sina dot com
` (10 preceding siblings ...)
2012-07-06 15:46 ` jason at gcc dot gnu.org
@ 2012-09-07 9:37 ` rguenth at gcc dot gnu.org
2012-11-29 20:18 ` jason at gcc dot gnu.org
` (2 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-09-07 9:37 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53862
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/53862] [4.6/4.7 regression] [C++11] sorry, unimplemented: use of 'type_pack_expansion' in template
2012-07-05 8:47 [Bug c++/53862] New: [GCC 4.7.1] sorry, unimplemented: use of 'type_pack_expansion' in template likan_999.student at sina dot com
` (11 preceding siblings ...)
2012-09-07 9:37 ` rguenth at gcc dot gnu.org
@ 2012-11-29 20:18 ` jason at gcc dot gnu.org
2012-11-29 21:58 ` jason at gcc dot gnu.org
2012-11-29 22:07 ` jason at gcc dot gnu.org
14 siblings, 0 replies; 16+ messages in thread
From: jason at gcc dot gnu.org @ 2012-11-29 20:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53862
--- Comment #9 from Jason Merrill <jason at gcc dot gnu.org> 2012-11-29 20:17:26 UTC ---
Author: jason
Date: Thu Nov 29 20:17:02 2012
New Revision: 193956
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193956
Log:
PR c++/53862
* pt.c (tsubst_arg_types): Add "end" parameter.
(check_undeduced_parms): Use it.
Added:
branches/gcc-4_7-branch/gcc/testsuite/g++.dg/cpp0x/variadic134.C
Modified:
branches/gcc-4_7-branch/gcc/cp/ChangeLog
branches/gcc-4_7-branch/gcc/cp/pt.c
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/53862] [4.6/4.7 regression] [C++11] sorry, unimplemented: use of 'type_pack_expansion' in template
2012-07-05 8:47 [Bug c++/53862] New: [GCC 4.7.1] sorry, unimplemented: use of 'type_pack_expansion' in template likan_999.student at sina dot com
` (12 preceding siblings ...)
2012-11-29 20:18 ` jason at gcc dot gnu.org
@ 2012-11-29 21:58 ` jason at gcc dot gnu.org
2012-11-29 22:07 ` jason at gcc dot gnu.org
14 siblings, 0 replies; 16+ messages in thread
From: jason at gcc dot gnu.org @ 2012-11-29 21:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53862
--- Comment #10 from Jason Merrill <jason at gcc dot gnu.org> 2012-11-29 21:58:22 UTC ---
Author: jason
Date: Thu Nov 29 21:58:16 2012
New Revision: 193970
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193970
Log:
PR c++/53862
* pt.c (tsubst_arg_types): Add "end" parameter.
(check_undeduced_parms): Use it.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/variadic134.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/pt.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/53862] [4.6/4.7 regression] [C++11] sorry, unimplemented: use of 'type_pack_expansion' in template
2012-07-05 8:47 [Bug c++/53862] New: [GCC 4.7.1] sorry, unimplemented: use of 'type_pack_expansion' in template likan_999.student at sina dot com
` (13 preceding siblings ...)
2012-11-29 21:58 ` jason at gcc dot gnu.org
@ 2012-11-29 22:07 ` jason at gcc dot gnu.org
14 siblings, 0 replies; 16+ messages in thread
From: jason at gcc dot gnu.org @ 2012-11-29 22:07 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53862
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
AssignedTo|unassigned at gcc dot |jason at gcc dot gnu.org
|gnu.org |
--- Comment #11 from Jason Merrill <jason at gcc dot gnu.org> 2012-11-29 22:07:18 UTC ---
Fixed for 4.6.4.
^ permalink raw reply [flat|nested] 16+ messages in thread