2010-05-25 Shujing Zhao <pearly.zhao@oracle.com>
authorpzhao <pzhao@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 May 2010 06:26:07 +0000 (06:26 +0000)
committerpzhao <pzhao@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 May 2010 06:26:07 +0000 (06:26 +0000)
commitc247dce0f0ab6cbd1ac41cbca6b40b5d46a73f41
treeec00ecffbf2ebeee6346550855750bf8c7447e40
parent34f82fe112fa551031e3c1cede36b7b8743690c1
2010-05-25  Shujing Zhao  <pearly.zhao@oracle.com>

        PR c++/18249
        * parser.c: Remove inclusion of dyn-string.h.
        (non_integral_constant): New enum.
        (name_lookup_error): New enum.
        (required_token): New enum.
        (cp_parser_required_error): New function.
        (cp_parser_require): Change the type of variable token_desc to
        required_token and use cp_parser_required_error.
        (cp_parser_require_keyword): Likewise.
        (cp_parser_error): Use gmsgid as parameter.
        (cp_parser_name_lookup_error): Change the type of variable desired to
        name_lookup_error and put the diagnostic in the full sentences. Change
        caller.
        (cp_parser_non_integral_constant_expression): Change the type of the
        variable thing to non_integral_constant and put the diagnostics in
        full sentences. Change caller.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159808 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c