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/44517] improve diagnostic for mispelled typename in function declaration



------- Comment #2 from pzhao at gcc dot gnu dot org  2010-06-25 07:32 -------
Subject: Bug 44517

Author: pzhao
Date: Fri Jun 25 07:31:49 2010
New Revision: 161363

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=161363
Log:
gcc/
2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>

        PR c/44517
        * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
        parameters are not good.
        (c_parser_parameter_declaration): Error unknown type name if the type
        name can't start declaration specifiers.

gcc/testsuite/
2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>

        PR c/44517
        * gcc.dg/noncompile/pr44517.c: New.
        * gcc.dg/noncompile/990416-1.c: Adjust expected error.


Added:
    trunk/gcc/testsuite/gcc.dg/noncompile/pr44517.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-parser.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/noncompile/990416-1.c


-- 


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


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