public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/56679] New: [C++11] Cannot take sizeof... a template template parameter pack
@ 2013-03-21 15:22 redi at gcc dot gnu.org
2013-03-28 20:04 ` [Bug c++/56679] " jason at gcc dot gnu.org
2013-03-28 20:13 ` paolo.carlini at oracle dot com
0 siblings, 2 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2013-03-21 15:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56679
Bug #: 56679
Summary: [C++11] Cannot take sizeof... a template template
parameter pack
Classification: Unclassified
Product: gcc
Version: 4.6.4
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: redi@gcc.gnu.org
All versions from 4.4 to trunk reject this:
template <template <typename> class... Args>
struct Foo {
static const int value = sizeof...(Args);
};
template <typename> struct Bar { };
const int test = Foo<Bar>::value;
v.cc:3:44: error: missing template arguments before ')' token
static const int value = sizeof...(Args);
^
Clang and ICC compile it ok.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/56679] [C++11] Cannot take sizeof... a template template parameter pack
2013-03-21 15:22 [Bug c++/56679] New: [C++11] Cannot take sizeof... a template template parameter pack redi at gcc dot gnu.org
@ 2013-03-28 20:04 ` jason at gcc dot gnu.org
2013-03-28 20:13 ` paolo.carlini at oracle dot com
1 sibling, 0 replies; 3+ messages in thread
From: jason at gcc dot gnu.org @ 2013-03-28 20:04 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56679
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |jason at gcc dot gnu.org
Resolution| |FIXED
AssignedTo|unassigned at gcc dot |jason at gcc dot gnu.org
|gnu.org |
Target Milestone|--- |4.9.0
--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2013-03-28 20:04:12 UTC ---
Fixed for 4.9.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/56679] [C++11] Cannot take sizeof... a template template parameter pack
2013-03-21 15:22 [Bug c++/56679] New: [C++11] Cannot take sizeof... a template template parameter pack redi at gcc dot gnu.org
2013-03-28 20:04 ` [Bug c++/56679] " jason at gcc dot gnu.org
@ 2013-03-28 20:13 ` paolo.carlini at oracle dot com
1 sibling, 0 replies; 3+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-03-28 20:13 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56679
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2013-03-28 20:13:17 UTC ---
Indeed. Thanks again!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-03-28 20:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-21 15:22 [Bug c++/56679] New: [C++11] Cannot take sizeof... a template template parameter pack redi at gcc dot gnu.org
2013-03-28 20:04 ` [Bug c++/56679] " jason at gcc dot gnu.org
2013-03-28 20:13 ` 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).