public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/52963] New: Missing error on pack expansion
@ 2012-04-12 22:14 xinliangli at gmail dot com
2015-03-20 18:11 ` [Bug c++/52963] " paolo.carlini at oracle dot com
0 siblings, 1 reply; 2+ messages in thread
From: xinliangli at gmail dot com @ 2012-04-12 22:14 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52963
Bug #: 52963
Summary: Missing error on pack expansion
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: xinliangli@gmail.com
template <class T, class U> struct S {};
template <typename... Ts> void f(Ts...);
template <typename... Ts> struct X {
template <typename... Us> void g() {
f(S<Ts, Us>()...);
}
};
void test(X<int, float> x) {
x.g<int, float, double>();
}
/*
oscar-wilde.cpp:6:18: error: pack expansion contains parameter packs 'Ts'
and 'Us' that have different lengths (2 vs. 3)
f(S<Ts, Us>()...);
~~ ~~ ^
oscar-wilde.cpp:11:5: note: in instantiation of function template
specialization 'X<int, float>::g<int, float, double>' requested here
x.g<int, float, double>();
^
1 error generated.
*/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-03-20 17:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-12 22:14 [Bug c++/52963] New: Missing error on pack expansion xinliangli at gmail dot com
2015-03-20 18:11 ` [Bug c++/52963] " paolo.carlini at oracle dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).