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++/39639] no diagnostic for ill-formed pack expansion



------- Comment #4 from dodji at gcc dot gnu dot org  2009-04-22 19:17 -------
Subject: Bug 39639

Author: dodji
Date: Wed Apr 22 19:17:18 2009
New Revision: 146610

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146610
Log:
2009-04-22  Dodji Seketeli  <dodji@redhat.com>

    gcc/cp/ChangeLog:
        PR c++/39639
        * parser.c (cp_parser_template_argument_list): Display an error
        when an ellipsis is not preceded by a parameter pack. Also, warn
        about variadic templates usage without -std=c++0x.

    gcc/testsuite/ChangeLog:
        PR c++/39639
        * g++.dg/cpp0x/pr39639.C: New test.


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


-- 


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


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