public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/43143] New: [c++0x] array value-initialization and variadics @ 2010-02-22 19:24 jason at gcc dot gnu dot org 2010-02-22 19:25 ` [Bug c++/43143] " jason at gcc dot gnu dot org ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: jason at gcc dot gnu dot org @ 2010-02-22 19:24 UTC (permalink / raw) To: gcc-bugs This ought to compile, but doesn't: template<typename T> T&& declval(); template<class T, class... Args> void test() { T t(declval<Args>()...); } int main() { test<const int>(); // OK test<int[23]>(); // Error } -- Summary: [c++0x] array value-initialization and variadics Product: gcc Version: 4.5.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: c++ AssignedTo: jason at gcc dot gnu dot org ReportedBy: jason at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43143 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/43143] [c++0x] array value-initialization and variadics 2010-02-22 19:24 [Bug c++/43143] New: [c++0x] array value-initialization and variadics jason at gcc dot gnu dot org @ 2010-02-22 19:25 ` jason at gcc dot gnu dot org 2010-02-23 18:33 ` jason at gcc dot gnu dot org 2010-02-23 18:34 ` jason at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: jason at gcc dot gnu dot org @ 2010-02-22 19:25 UTC (permalink / raw) To: gcc-bugs -- jason at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2010-02-22 19:25:38 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43143 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/43143] [c++0x] array value-initialization and variadics 2010-02-22 19:24 [Bug c++/43143] New: [c++0x] array value-initialization and variadics jason at gcc dot gnu dot org 2010-02-22 19:25 ` [Bug c++/43143] " jason at gcc dot gnu dot org @ 2010-02-23 18:33 ` jason at gcc dot gnu dot org 2010-02-23 18:34 ` jason at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: jason at gcc dot gnu dot org @ 2010-02-23 18:33 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from jason at gcc dot gnu dot org 2010-02-23 18:32 ------- Subject: Bug 43143 Author: jason Date: Tue Feb 23 18:32:20 2010 New Revision: 157015 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157015 Log: PR c++/43143 * typeck2.c (digest_init_r): Accept value init of array. Added: trunk/gcc/testsuite/g++.dg/cpp0x/variadic100.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/typeck2.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43143 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/43143] [c++0x] array value-initialization and variadics 2010-02-22 19:24 [Bug c++/43143] New: [c++0x] array value-initialization and variadics jason at gcc dot gnu dot org 2010-02-22 19:25 ` [Bug c++/43143] " jason at gcc dot gnu dot org 2010-02-23 18:33 ` jason at gcc dot gnu dot org @ 2010-02-23 18:34 ` jason at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: jason at gcc dot gnu dot org @ 2010-02-23 18:34 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from jason at gcc dot gnu dot org 2010-02-23 18:34 ------- Fixed for 4.5. -- jason at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED Target Milestone|--- |4.5.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43143 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-02-23 18:34 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2010-02-22 19:24 [Bug c++/43143] New: [c++0x] array value-initialization and variadics jason at gcc dot gnu dot org 2010-02-22 19:25 ` [Bug c++/43143] " jason at gcc dot gnu dot org 2010-02-23 18:33 ` jason at gcc dot gnu dot org 2010-02-23 18:34 ` jason at gcc dot gnu dot org
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).