This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/59435] sizeof...(T) as default value for an argument in the constructor does not work


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59435

--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Mon Dec  9 22:59:33 2013
New Revision: 205836

URL: http://gcc.gnu.org/viewcvs?rev=205836&root=gcc&view=rev
Log:
/cp
2013-12-09  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/59435
    * parser.c (cp_parser_cache_defarg): sizeof ... ( p ) can
    occur in a default argument too.

/testsuite
2013-12-09  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/59435
    * g++.dg/cpp0x/variadic-sizeof3.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/variadic-sizeof3.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]